home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 2: Applications / Linux Cubed Series 2 - Applications.iso / editors / emacs / xemacs / xemacs-1.006 / xemacs-1 / lib / xemacs-19.13 / lisp / hyperbole / hbut.elc < prev    next >
Emacs Compiled Lisp  |  1995-08-29  |  26.9 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


This file was processed as: Emacs Compiled Lisp (other/emacsCompiledLisp).
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
1% dexvert Emacs Compiled Lisp (other/emacsCompiledLisp) magic Unsupported
1% dexvert Combustion 2 Particle Library (other/combustion2ParticleLibrary) ext Unsupported
100% file Emacs/XEmacs v19 byte-compiled Lisp data default
99% file data default
100% TrID Emacs/XEmacs byte-compiled Lisp (generic) default
100% xdgMime text/x-emacs-lisp default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3b 45 4c 43 13 00 00 00 | 0a 3b 3b 3b 20 63 6f 6d |;ELC....|.;;; com|
|00000010| 70 69 6c 65 64 20 62 79 | 20 63 74 68 6f 6d 70 40 |piled by| cthomp@|
|00000020| 77 69 6c 6c 6f 77 2e 63 | 73 2e 75 69 75 63 2e 65 |willow.c|s.uiuc.e|
|00000030| 64 75 20 6f 6e 20 54 75 | 65 20 41 75 67 20 32 39 |du on Tu|e Aug 29|
|00000040| 20 31 34 3a 35 31 3a 34 | 34 20 31 39 39 35 0a 3b | 14:51:4|4 1995.;|
|00000050| 3b 3b 20 66 72 6f 6d 20 | 66 69 6c 65 20 2f 65 78 |;; from |file /ex|
|00000060| 70 6f 72 74 2f 77 69 6c | 6c 6f 77 33 2f 78 65 6d |port/wil|low3/xem|
|00000070| 61 63 73 2d 31 39 2e 31 | 33 2d 72 65 6c 65 61 73 |acs-19.1|3-releas|
|00000080| 65 2f 65 64 69 74 6f 72 | 2f 6c 69 73 70 2f 68 79 |e/editor|/lisp/hy|
|00000090| 70 65 72 62 6f 6c 65 2f | 68 62 75 74 2e 65 6c 0a |perbole/|hbut.el.|
|000000a0| 3b 3b 3b 20 65 6d 61 63 | 73 20 76 65 72 73 69 6f |;;; emac|s versio|
|000000b0| 6e 20 31 39 2e 31 33 20 | 58 45 6d 61 63 73 20 4c |n 19.13 |XEmacs L|
|000000c0| 75 63 69 64 2e 0a 3b 3b | 3b 20 62 79 74 65 63 6f |ucid..;;|; byteco|
|000000d0| 6d 70 20 76 65 72 73 69 | 6f 6e 20 32 2e 32 35 3b |mp versi|on 2.25;|
|000000e0| 20 31 2d 53 65 70 2d 39 | 34 2e 0a 3b 3b 3b 20 6f | 1-Sep-9|4..;;; o|
|000000f0| 70 74 69 6d 69 7a 61 74 | 69 6f 6e 20 69 73 20 6f |ptimizat|ion is o|
|00000100| 6e 2e 0a 3b 3b 3b 20 74 | 68 69 73 20 66 69 6c 65 |n..;;; t|his file|
|00000110| 20 75 73 65 73 20 6f 70 | 63 6f 64 65 73 20 77 68 | uses op|codes wh|
|00000120| 69 63 68 20 64 6f 20 6e | 6f 74 20 65 78 69 73 74 |ich do n|ot exist|
|00000130| 20 69 6e 20 45 6d 61 63 | 73 20 31 38 2e 0a 0a 28 | in Emac|s 18...(|
|00000140| 69 66 20 28 61 6e 64 20 | 28 62 6f 75 6e 64 70 20 |if (and |(boundp |
|00000150| 27 65 6d 61 63 73 2d 76 | 65 72 73 69 6f 6e 29 0a |'emacs-v|ersion).|
|00000160| 09 20 28 6f 72 20 28 61 | 6e 64 20 28 62 6f 75 6e |. (or (a|nd (boun|
|00000170| 64 70 20 27 65 70 6f 63 | 68 3a 3a 76 65 72 73 69 |dp 'epoc|h::versi|
|00000180| 6f 6e 29 20 65 70 6f 63 | 68 3a 3a 76 65 72 73 69 |on) epoc|h::versi|
|00000190| 6f 6e 29 0a 09 20 20 20 | 20 20 28 73 74 72 69 6e |on).. | (strin|
|000001a0| 67 2d 6c 65 73 73 70 20 | 65 6d 61 63 73 2d 76 65 |g-lessp |emacs-ve|
|000001b0| 72 73 69 6f 6e 20 22 31 | 39 22 29 29 29 0a 20 20 |rsion "1|9"))). |
|000001c0| 20 20 28 65 72 72 6f 72 | 20 22 54 68 69 73 20 66 | (error| "This f|
|000001d0| 69 6c 65 20 77 61 73 20 | 63 6f 6d 70 69 6c 65 64 |ile was |compiled|
|000001e0| 20 66 6f 72 20 45 6d 61 | 63 73 20 31 39 2e 22 29 | for Ema|cs 19.")|
|000001f0| 29 0a 0a 28 62 79 74 65 | 2d 63 6f 64 65 20 22 c0 |)..(byte|-code ".|
|00000200| c1 21 88 c0 c2 21 88 c0 | c3 21 88 c0 c4 21 88 c0 |.!...!..|.!...!..|
|00000210| c5 21 87 22 20 5b 72 65 | 71 75 69 72 65 20 68 6d |.!." [re|quire hm|
|00000220| 6f 63 63 75 72 20 68 62 | 6d 61 70 20 68 74 7a 20 |occur hb|map htz |
|00000230| 68 62 64 61 74 61 20 68 | 61 63 74 5d 20 32 29 0a |hbdata h|act] 2).|
|00000240| 28 64 65 66 76 61 72 20 | 65 62 75 74 3a 68 61 74 |(defvar |ebut:hat|
|00000250| 74 72 2d 73 61 76 65 20 | 74 20 22 5c 0a 2a 4e 6f |tr-save |t "\.*No|
|00000260| 6e 2d 6e 69 6c 20 76 61 | 6c 75 65 20 73 61 76 65 |n-nil va|lue save|
|00000270| 73 20 62 75 74 74 6f 6e | 20 64 61 74 61 20 77 68 |s button| data wh|
|00000280| 65 6e 20 62 75 74 74 6f | 6e 20 73 6f 75 72 63 65 |en butto|n source|
|00000290| 20 69 73 20 73 61 76 65 | 64 2e 0a 4e 69 6c 20 64 | is save|d..Nil d|
|000002a0| 69 73 61 62 6c 65 73 20 | 73 61 76 69 6e 67 2e 22 |isables |saving."|
|000002b0| 29 0a 28 64 65 66 63 6f | 6e 73 74 20 65 62 75 74 |).(defco|nst ebut|
|000002c0| 3a 6d 61 78 2d 6c 65 6e | 20 31 30 30 20 22 5c 0a |:max-len| 100 "\.|
|000002d0| 4d 61 78 69 6d 75 6d 20 | 6c 65 6e 67 74 68 20 6f |Maximum |length o|
|000002e0| 66 20 61 20 68 79 70 65 | 72 2d 62 75 74 74 6f 6e |f a hype|r-button|
|000002f0| 20 6c 61 62 65 6c 2e 22 | 29 0a 28 66 73 65 74 20 | label."|).(fset |
|00000300| 27 65 62 75 74 3a 61 6c | 69 73 74 20 23 5b 28 26 |'ebut:al|ist #[(&|
|00000310| 6f 70 74 69 6f 6e 61 6c | 20 66 69 6c 65 29 20 22 |optional| file) "|
|00000320| c0 c1 c2 0b 21 5c 22 87 | 22 20 5b 6d 61 70 63 61 |....!\".|" [mapca|
|00000330| 72 20 6c 69 73 74 20 65 | 62 75 74 3a 6c 69 73 74 |r list e|but:list|
|00000340| 20 66 69 6c 65 5d 20 34 | 20 22 5c 0a 52 65 74 75 | file] 4| "\.Retu|
|00000350| 72 6e 73 20 61 6c 69 73 | 74 20 77 69 74 68 20 65 |rns alis|t with e|
|00000360| 61 63 68 20 65 6c 65 6d | 65 6e 74 20 61 20 6c 69 |ach elem|ent a li|
|00000370| 73 74 20 63 6f 6e 74 61 | 69 6e 69 6e 67 20 61 20 |st conta|ining a |
|00000380| 62 75 74 74 6f 6e 20 6c | 61 62 65 6c 2e 0a 46 6f |button l|abel..Fo|
|00000390| 72 20 75 73 65 20 61 73 | 20 61 20 63 6f 6d 70 6c |r use as| a compl|
|000003a0| 65 74 69 6f 6e 20 74 61 | 62 6c 65 2e 20 20 47 65 |etion ta|ble. Ge|
|000003b0| 74 73 20 6c 61 62 65 6c | 73 20 66 72 6f 6d 20 6f |ts label|s from o|
|000003c0| 70 74 69 6f 6e 61 6c 20 | 46 49 4c 45 20 6f 72 20 |ptional |FILE or |
|000003d0| 63 75 72 72 65 6e 74 0a | 62 75 66 66 65 72 2e 22 |current.|buffer."|
|000003e0| 5d 29 0a 28 66 73 65 74 | 20 27 65 62 75 74 3a 61 |]).(fset| 'ebut:a|
|000003f0| 74 2d 70 20 23 5b 28 26 | 6f 70 74 69 6f 6e 61 6c |t-p #[(&|optional|
|00000400| 20 73 74 61 72 74 2d 64 | 65 6c 69 6d 20 65 6e 64 | start-d|elim end|
|00000410| 2d 64 65 6c 69 6d 29 20 | 22 c0 c1 5c 6e 0b 23 89 |-delim) |"..\n.#.|
|00000420| 1c ad 83 c5 0c 21 29 87 | 22 20 5b 65 62 75 74 3a |.....!).|" [ebut:|
|00000430| 6c 61 62 65 6c 2d 70 20 | 6e 69 6c 20 73 74 61 72 |label-p |nil star|
|00000440| 74 2d 64 65 6c 69 6d 20 | 65 6e 64 2d 64 65 6c 69 |t-delim |end-deli|
|00000450| 6d 20 6b 65 79 20 65 62 | 75 74 3a 67 65 74 5d 20 |m key eb|ut:get] |
|00000460| 35 20 22 5c 0a 52 65 74 | 75 72 6e 73 20 65 78 70 |5 "\.Ret|urns exp|
|00000470| 6c 69 63 69 74 20 48 79 | 70 65 72 62 6f 6c 65 20 |licit Hy|perbole |
|00000480| 62 75 74 74 6f 6e 20 61 | 74 20 70 6f 69 6e 74 20 |button a|t point |
|00000490| 6f 72 20 6e 69 6c 2e 0a | 41 73 73 75 6d 65 73 20 |or nil..|Assumes |
|000004a0| 70 6f 69 6e 74 20 69 73 | 20 77 69 74 68 69 6e 20 |point is| within |
|000004b0| 66 69 72 73 74 20 6c 69 | 6e 65 20 6f 66 20 62 75 |first li|ne of bu|
|000004c0| 74 74 6f 6e 20 6c 61 62 | 65 6c 2c 20 69 66 20 61 |tton lab|el, if a|
|000004d0| 74 20 61 6c 6c 2e 0a 4f | 70 74 69 6f 6e 61 6c 20 |t all..O|ptional |
|000004e0| 53 54 41 52 54 2d 44 45 | 4c 49 4d 20 61 6e 64 20 |START-DE|LIM and |
|000004f0| 45 4e 44 2d 44 45 4c 49 | 4d 20 61 72 65 20 73 74 |END-DELI|M are st|
|00000500| 72 69 6e 67 73 20 74 68 | 61 74 20 6f 76 65 72 72 |rings th|at overr|
|00000510| 69 64 65 20 64 65 66 61 | 75 6c 74 0a 62 75 74 74 |ide defa|ult.butt|
|00000520| 6f 6e 20 64 65 6c 69 6d | 69 74 65 72 73 2e 22 5d |on delim|iters."]|
|00000530| 29 0a 28 66 73 65 74 20 | 27 65 62 75 74 3a 63 72 |).(fset |'ebut:cr|
|00000540| 65 61 74 65 20 23 5b 28 | 26 6f 70 74 69 6f 6e 61 |eate #[(|&optiona|
|00000550| 6c 20 62 75 74 2d 73 79 | 6d 29 20 22 c0 c1 5c 6e |l but-sy|m) "..\n|
|00000560| 5c 22 1b c4 c5 21 88 0b | 29 87 22 20 5b 68 62 64 |\"...!..|)." [hbd|
|00000570| 61 74 61 3a 77 72 69 74 | 65 20 6e 69 6c 20 62 75 |ata:writ|e nil bu|
|00000580| 74 2d 73 79 6d 20 6c 62 | 6c 2d 69 6e 73 74 61 6e |t-sym lb|l-instan|
|00000590| 63 65 20 72 75 6e 2d 68 | 6f 6f 6b 73 20 65 62 75 |ce run-h|ooks ebu|
|000005a0| 74 3a 63 72 65 61 74 65 | 2d 68 6f 6f 6b 5d 20 33 |t:create|-hook] 3|
|000005b0| 20 22 5c 0a 43 72 65 61 | 74 65 73 20 48 79 70 65 | "\.Crea|tes Hype|
|000005c0| 72 62 6f 6c 65 20 65 78 | 70 6c 69 63 69 74 20 62 |rbole ex|plicit b|
|000005d0| 75 74 74 6f 6e 20 62 61 | 73 65 64 20 6f 6e 20 6f |utton ba|sed on o|
|000005e0| 70 74 69 6f 6e 61 6c 20 | 42 55 54 2d 53 59 4d 2e |ptional |BUT-SYM.|
|000005f0| 0a 44 65 66 61 75 6c 74 | 20 69 73 20 27 68 62 75 |.Default| is 'hbu|
|00000600| 74 3a 63 75 72 72 65 6e | 74 27 2e 0a 42 75 74 74 |t:curren|t'..Butt|
|00000610| 6f 6e 20 73 68 6f 75 6c | 64 20 68 6f 6c 64 20 74 |on shoul|d hold t|
|00000620| 68 65 20 66 6f 6c 6c 6f | 77 69 6e 67 20 61 74 74 |he follo|wing att|
|00000630| 72 69 62 75 74 65 73 20 | 28 73 65 65 20 27 68 61 |ributes |(see 'ha|
|00000640| 74 74 72 3a 73 65 74 27 | 29 3a 20 0a 20 20 20 6c |ttr:set'|): . l|
|00000650| 62 6c 2d 6b 65 79 20 28 | 6e 6f 72 6d 61 6c 69 7a |bl-key (|normaliz|
|00000660| 65 64 20 62 75 74 74 6f | 6e 20 6c 61 62 65 6c 20 |ed butto|n label |
|00000670| 73 74 72 69 6e 67 29 2c | 0a 20 20 20 6c 6f 63 20 |string),|. loc |
|00000680| 20 20 20 20 28 66 69 6c | 65 6e 61 6d 65 20 6f 72 | (fil|ename or|
|00000690| 20 62 75 66 66 65 72 20 | 77 68 65 72 65 20 62 75 | buffer |where bu|
|000006a0| 74 74 6f 6e 20 69 73 20 | 6c 6f 63 61 74 65 64 29 |tton is |located)|
|000006b0| 2c 0a 20 20 20 64 69 72 | 20 20 20 20 20 28 64 69 |,. dir| (di|
|000006c0| 72 65 63 74 6f 72 79 20 | 6e 61 6d 65 20 77 68 65 |rectory |name whe|
|000006d0| 72 65 20 62 75 74 74 6f | 6e 20 69 73 20 6c 6f 63 |re butto|n is loc|
|000006e0| 61 74 65 64 29 2c 0a 20 | 20 20 61 63 74 79 70 65 |ated),. | actype|
|000006f0| 20 20 28 61 63 74 69 6f | 6e 20 74 79 70 65 20 74 | (actio|n type t|
|00000700| 68 61 74 20 70 72 6f 76 | 69 64 65 73 20 61 20 64 |hat prov|ides a d|
|00000710| 65 66 61 75 6c 74 20 61 | 63 74 69 6f 6e 20 66 6f |efault a|ction fo|
|00000720| 72 20 74 68 65 20 62 75 | 74 74 6f 6e 29 2c 0a 20 |r the bu|tton),. |
|00000730| 20 20 61 63 74 69 6f 6e | 20 20 28 6f 70 74 69 6f | action| (optio|
|00000740| 6e 61 6c 20 61 63 74 69 | 6f 6e 20 74 68 61 74 20 |nal acti|on that |
|00000750| 6f 76 65 72 72 69 64 65 | 73 20 74 68 65 20 64 65 |override|s the de|
|00000760| 66 61 75 6c 74 29 2c 0a | 20 20 20 61 72 67 73 20 |fault),.| args |
|00000770| 20 20 20 28 6c 69 73 74 | 20 6f 66 20 61 72 67 75 | (list| of argu|
|00000780| 6d 65 6e 74 73 20 66 6f | 72 20 61 63 74 69 6f 6e |ments fo|r action|
|00000790| 2c 20 69 66 20 61 63 74 | 69 6f 6e 20 74 61 6b 65 |, if act|ion take|
|000007a0| 73 20 61 20 73 69 6e 67 | 6c 65 0a 20 20 20 20 20 |s a sing|le. |
|000007b0| 20 20 20 20 20 20 20 61 | 72 67 75 6d 65 6e 74 20 | a|rgument |
|000007c0| 6f 66 20 74 68 65 20 62 | 75 74 74 6f 6e 20 6c 62 |of the b|utton lb|
|000007d0| 6c 2d 6b 65 79 2c 20 61 | 72 67 73 20 6d 61 79 20 |l-key, a|rgs may |
|000007e0| 62 65 20 6e 69 6c 29 2e | 0a 0a 49 66 20 73 75 63 |be nil).|..If suc|
|000007f0| 63 65 73 73 66 75 6c 20 | 72 65 74 75 72 6e 73 20 |cessful |returns |
|00000800| 61 6e 79 20 69 6e 73 74 | 61 6e 63 65 20 6e 75 6d |any inst|ance num|
|00000810| 62 65 72 20 74 6f 20 61 | 70 70 65 6e 64 20 74 6f |ber to a|ppend to|
|00000820| 20 62 75 74 74 6f 6e 20 | 6c 61 62 65 6c 0a 65 78 | button |label.ex|
|00000830| 63 65 70 74 20 77 68 65 | 6e 20 69 6e 73 74 61 6e |cept whe|n instan|
|00000840| 63 65 20 6e 75 6d 62 65 | 72 20 77 6f 75 6c 64 20 |ce numbe|r would |
|00000850| 62 65 20 31 2c 20 74 68 | 65 6e 20 72 65 74 75 72 |be 1, th|en retur|
|00000860| 6e 73 20 74 2e 20 20 4f | 6e 20 66 61 69 6c 75 72 |ns t. O|n failur|
|00000870| 65 2c 0a 72 65 74 75 72 | 6e 73 20 6e 69 6c 2e 0a |e,.retur|ns nil..|
|00000880| 0a 49 66 20 73 75 63 63 | 65 73 73 66 75 6c 2c 20 |.If succ|essful, |
|00000890| 6c 65 61 76 65 73 20 70 | 6f 69 6e 74 20 69 6e 20 |leaves p|oint in |
|000008a0| 62 75 74 74 6f 6e 20 64 | 61 74 61 20 62 75 66 66 |button d|ata buff|
|000008b0| 65 72 2c 20 73 6f 20 63 | 61 6c 6c 65 72 20 73 68 |er, so c|aller sh|
|000008c0| 6f 75 6c 64 20 75 73 65 | 0a 27 73 61 76 65 2d 65 |ould use|.'save-e|
|000008d0| 78 63 75 72 73 69 6f 6e | 27 2e 20 20 44 6f 65 73 |xcursion|'. Does|
|000008e0| 20 6e 6f 74 20 73 61 76 | 65 20 62 75 74 74 6f 6e | not sav|e button|
|000008f0| 20 64 61 74 61 20 62 75 | 66 66 65 72 2e 22 5d 29 | data bu|ffer."])|
|00000900| 0a 28 66 73 65 74 20 27 | 65 62 75 74 3a 64 65 6c |.(fset '|ebut:del|
|00000910| 65 74 65 20 23 5b 28 26 | 6f 70 74 69 6f 6e 61 6c |ete #[(&|optional|
|00000920| 20 62 75 74 2d 73 79 6d | 29 20 22 08 ac 82 c1 10 | but-sym|) ".....|
|00000930| c2 08 21 ad 99 c3 08 c4 | 5c 22 1d c3 08 c6 5c 22 |..!.....|\"....\"|
|00000940| 1e 06 c7 0d 0e 06 5c 22 | 1e 08 c9 ca 21 88 0e 08 |......\"|....!...|
|00000950| 2b 87 22 20 5b 62 75 74 | 2d 73 79 6d 20 68 62 75 |+." [but|-sym hbu|
|00000960| 74 3a 63 75 72 72 65 6e | 74 20 65 62 75 74 3a 69 |t:curren|t ebut:i|
|00000970| 73 2d 70 20 68 61 74 74 | 72 3a 67 65 74 20 6c 62 |s-p hatt|r:get lb|
|00000980| 6c 2d 6b 65 79 20 62 75 | 74 2d 6b 65 79 20 6c 6f |l-key bu|t-key lo|
|00000990| 63 20 68 62 64 61 74 61 | 3a 64 65 6c 65 74 65 2d |c hbdata|:delete-|
|000009a0| 65 6e 74 72 79 20 65 6e | 74 72 79 20 72 75 6e 2d |entry en|try run-|
|000009b0| 68 6f 6f 6b 73 20 65 62 | 75 74 3a 64 65 6c 65 74 |hooks eb|ut:delet|
|000009c0| 65 2d 68 6f 6f 6b 5d 20 | 33 20 22 5c 0a 44 65 6c |e-hook] |3 "\.Del|
|000009d0| 65 74 65 73 20 48 79 70 | 65 72 62 6f 6c 65 20 65 |etes Hyp|erbole e|
|000009e0| 78 70 6c 69 63 69 74 20 | 62 75 74 74 6f 6e 20 62 |xplicit |button b|
|000009f0| 61 73 65 64 20 6f 6e 20 | 6f 70 74 69 6f 6e 61 6c |ased on |optional|
|00000a00| 20 42 55 54 2d 53 59 4d | 2e 0a 44 65 66 61 75 6c | BUT-SYM|..Defaul|
|00000a10| 74 20 69 73 20 27 68 62 | 75 74 3a 63 75 72 72 65 |t is 'hb|ut:curre|
|00000a20| 6e 74 27 2e 0a 52 65 74 | 75 72 6e 73 20 65 6e 74 |nt'..Ret|urns ent|
|00000a30| 72 79 20 64 65 6c 65 74 | 65 64 20 28 61 20 6c 69 |ry delet|ed (a li|
|00000a40| 73 74 20 6f 66 20 61 74 | 74 72 69 62 75 74 65 20 |st of at|tribute |
|00000a50| 76 61 6c 75 65 73 29 20 | 6f 72 20 6e 69 6c 2e 22 |values) |or nil."|
|00000a60| 5d 29 0a 28 66 73 65 74 | 20 27 65 62 75 74 3a 67 |]).(fset| 'ebut:g|
|00000a70| 65 74 20 23 5b 28 26 6f | 70 74 69 6f 6e 61 6c 20 |et #[(&o|ptional |
|00000a80| 6c 62 6c 2d 6b 65 79 20 | 62 75 66 66 65 72 20 6b |lbl-key |buffer k|
|00000a90| 65 79 2d 73 72 63 29 20 | 22 c0 c1 21 88 8a c2 89 |ey-src) |"..!....|
|00000aa0| 89 89 1b 1c 1d 1e 06 0e | 07 ac 84 c8 20 16 07 0e |........|.... ...|
|00000ab0| 09 ab 92 ca 0e 09 21 ab | 86 0e 09 71 88 aa 86 cb |......!.|...q....|
|00000ac0| cc 0e 09 5c 22 88 0e 0d | ac 9a 0e 07 c8 20 9a ac |...\"...|..... ..|
|00000ad0| 88 65 62 88 ce 0e 07 21 | 88 cf d0 21 89 16 0d ab |.eb....!|...!....|
|00000ae0| 83 70 16 09 0e 07 3b 85 | d7 00 0e 0d 85 d7 00 0e |.p....;.|........|
|00000af0| 0d 3b ab 8b d1 0e 0d 21 | 15 d2 0e 0d 21 16 06 0e |.;.....!|....!...|
|00000b00| 0d ad 8b d3 0e 07 0e 06 | ae 82 0e 0d 0d 23 89 14 |........|.....#..|
|00000b10| 3f 3f ad dd d4 c1 c7 0e | 07 23 88 d4 c1 d5 0e 0d |??......|.#......|
|00000b20| 23 88 d4 c1 d6 d7 23 88 | d4 c1 d8 c2 23 88 d4 c1 |#.....#.|....#...|
|00000b30| c3 d9 da 0c 21 89 13 21 | 23 88 0b 47 db 55 ab 88 |....!..!|#..G.U..|
|00000b40| d4 c1 dc dd 0c 21 23 88 | d4 c1 de df 0c 21 23 88 |.....!#.|.....!#.|
|00000b50| d4 c1 e0 e1 0c 21 23 88 | d4 c1 e2 e3 0c 21 23 88 |.....!#.|.....!#.|
|00000b60| d4 c1 e4 e5 0c 21 23 88 | d4 c1 e6 e7 0c 21 23 88 |.....!#.|.....!#.|
|00000b70| c1 2d 87 22 20 5b 68 61 | 74 74 72 3a 63 6c 65 61 |.-." [ha|ttr:clea|
|00000b80| 72 20 68 62 75 74 3a 63 | 75 72 72 65 6e 74 20 6e |r hbut:c|urrent n|
|00000b90| 69 6c 20 61 63 74 79 70 | 65 20 62 75 74 2d 64 61 |il actyp|e but-da|
|00000ba0| 74 61 20 6b 65 79 2d 64 | 69 72 20 6b 65 79 2d 66 |ta key-d|ir key-f|
|00000bb0| 69 6c 65 20 6c 62 6c 2d | 6b 65 79 20 65 62 75 74 |ile lbl-|key ebut|
|00000bc0| 3a 6c 61 62 65 6c 2d 70 | 20 62 75 66 66 65 72 20 |:label-p| buffer |
|00000bd0| 62 75 66 66 65 72 70 20 | 65 72 72 6f 72 20 22 28 |bufferp |error "(|
|00000be0| 65 62 75 74 3a 67 65 74 | 29 3a 20 49 6e 76 61 6c |ebut:get|): Inval|
|00000bf0| 69 64 20 62 75 66 66 65 | 72 20 61 72 67 75 6d 65 |id buffe|r argume|
|00000c00| 6e 74 3a 20 25 73 22 20 | 6b 65 79 2d 73 72 63 20 |nt: %s" |key-src |
|00000c10| 65 62 75 74 3a 6e 65 78 | 74 2d 6f 63 63 75 72 72 |ebut:nex|t-occurr|
|00000c20| 65 6e 63 65 20 65 62 75 | 74 3a 6b 65 79 2d 73 72 |ence ebu|t:key-sr|
|00000c30| 63 20 66 75 6c 6c 20 66 | 69 6c 65 2d 6e 61 6d 65 |c full f|ile-name|
|00000c40| 2d 64 69 72 65 63 74 6f | 72 79 20 66 69 6c 65 2d |-directo|ry file-|
|00000c50| 6e 61 6d 65 2d 6e 6f 6e | 64 69 72 65 63 74 6f 72 |name-non|director|
|00000c60| 79 20 68 62 64 61 74 61 | 3a 67 65 74 2d 65 6e 74 |y hbdata|:get-ent|
|00000c70| 72 79 20 68 61 74 74 72 | 3a 73 65 74 20 6c 6f 63 |ry hattr|:set loc|
|00000c80| 20 63 61 74 65 67 20 65 | 78 70 6c 69 63 69 74 20 | categ e|xplicit |
|00000c90| 61 63 74 69 6f 6e 20 69 | 6e 74 65 72 6e 20 68 62 |action i|ntern hb|
|00000ca0| 64 61 74 61 3a 61 63 74 | 79 70 65 20 32 20 72 65 |data:act|ype 2 re|
|00000cb0| 66 65 72 65 6e 74 20 68 | 62 64 61 74 61 3a 72 65 |ferent h|bdata:re|
|00000cc0| 66 65 72 65 6e 74 20 61 | 72 67 73 20 68 62 64 61 |ferent a|rgs hbda|
|00000cd0| 74 61 3a 61 72 67 73 20 | 63 72 65 61 74 6f 72 20 |ta:args |creator |
|00000ce0| 68 62 64 61 74 61 3a 63 | 72 65 61 74 6f 72 20 63 |hbdata:c|reator c|
|00000cf0| 72 65 61 74 65 2d 74 69 | 6d 65 20 68 62 64 61 74 |reate-ti|me hbdat|
|00000d00| 61 3a 63 72 65 61 74 65 | 2d 74 69 6d 65 20 6d 6f |a:create|-time mo|
|00000d10| 64 69 66 69 65 72 20 68 | 62 64 61 74 61 3a 6d 6f |difier h|bdata:mo|
|00000d20| 64 69 66 69 65 72 20 6d | 6f 64 2d 74 69 6d 65 20 |difier m|od-time |
|00000d30| 68 62 64 61 74 61 3a 6d | 6f 64 2d 74 69 6d 65 5d |hbdata:m|od-time]|
|00000d40| 20 37 20 22 5c 0a 52 65 | 74 75 72 6e 73 20 65 78 | 7 "\.Re|turns ex|
|00000d50| 70 6c 69 63 69 74 20 48 | 79 70 65 72 62 6f 6c 65 |plicit H|yperbole|
|00000d60| 20 62 75 74 74 6f 6e 20 | 73 79 6d 62 6f 6c 20 67 | button |symbol g|
|00000d70| 69 76 65 6e 20 62 79 20 | 4c 42 4c 2d 4b 45 59 20 |iven by |LBL-KEY |
|00000d80| 61 6e 64 20 42 55 46 46 | 45 52 2e 0a 4b 45 59 2d |and BUFF|ER..KEY-|
|00000d90| 53 52 43 20 69 73 20 67 | 69 76 65 6e 20 77 68 65 |SRC is g|iven whe|
|00000da0| 6e 20 72 65 74 72 69 65 | 76 69 6e 67 20 67 6c 6f |n retrie|ving glo|
|00000db0| 62 61 6c 20 62 75 74 74 | 6f 6e 73 20 61 6e 64 20 |bal butt|ons and |
|00000dc0| 69 73 20 66 75 6c 6c 20 | 73 6f 75 72 63 65 20 70 |is full |source p|
|00000dd0| 61 74 68 6e 61 6d 65 2e | 0a 52 65 74 72 69 65 76 |athname.|.Retriev|
|00000de0| 65 73 20 62 75 74 74 6f | 6e 20 64 61 74 61 2c 20 |es butto|n data, |
|00000df0| 63 6f 6e 76 65 72 74 73 | 20 69 6e 74 6f 20 61 20 |converts| into a |
|00000e00| 62 75 74 74 6f 6e 20 6f | 62 6a 65 63 74 20 61 6e |button o|bject an|
|00000e10| 64 20 72 65 74 75 72 6e | 73 20 61 20 73 79 6d 62 |d return|s a symb|
|00000e20| 6f 6c 0a 77 68 69 63 68 | 20 72 65 66 65 72 65 6e |ol.which| referen|
|00000e30| 63 65 73 20 74 68 65 20 | 62 75 74 74 6f 6e 2e 0a |ces the |button..|
|00000e40| 0a 41 6c 6c 20 61 72 67 | 75 6d 65 6e 74 73 20 61 |.All arg|uments a|
|00000e50| 72 65 20 6f 70 74 69 6f | 6e 61 6c 2e 20 20 57 68 |re optio|nal. Wh|
|00000e60| 65 6e 20 6e 6f 6e 65 20 | 61 72 65 20 67 69 76 65 |en none |are give|
|00000e70| 6e 2c 20 72 65 74 75 72 | 6e 73 20 73 79 6d 62 6f |n, retur|ns symbo|
|00000e80| 6c 20 66 6f 72 0a 62 75 | 74 74 6f 6e 20 74 68 61 |l for.bu|tton tha|
|00000e90| 74 20 70 6f 69 6e 74 20 | 69 73 20 77 69 74 68 69 |t point |is withi|
|00000ea0| 6e 20 6f 72 20 6e 69 6c | 2e 20 20 42 55 46 46 45 |n or nil|. BUFFE|
|00000eb0| 52 20 64 65 66 61 75 6c | 74 73 20 74 6f 20 74 68 |R defaul|ts to th|
|00000ec0| 65 20 63 75 72 72 65 6e | 74 0a 62 75 66 66 65 72 |e curren|t.buffer|
|00000ed0| 2e 22 5d 29 0a 28 66 73 | 65 74 20 27 65 62 75 74 |."]).(fs|et 'ebut|
|00000ee0| 3a 69 73 2d 70 20 23 5b | 28 6f 62 6a 65 63 74 29 |:is-p #[|(object)|
|00000ef0| 20 22 08 39 ad 86 c1 08 | c2 5c 22 c3 3d 87 22 20 | ".9....|.\".=." |
|00000f00| 5b 6f 62 6a 65 63 74 20 | 68 61 74 74 72 3a 67 65 |[object |hattr:ge|
|00000f10| 74 20 63 61 74 65 67 20 | 65 78 70 6c 69 63 69 74 |t categ |explicit|
|00000f20| 5d 20 33 20 22 5c 0a 52 | 65 74 75 72 6e 73 20 6e |] 3 "\.R|eturns n|
|00000f30| 6f 6e 2d 6e 69 6c 20 69 | 66 20 4f 42 4a 45 43 54 |on-nil i|f OBJECT|
|00000f40| 20 64 65 6e 6f 74 65 73 | 20 61 6e 20 65 78 70 6c | denotes| an expl|
|00000f50| 69 63 69 74 20 48 79 70 | 65 72 62 6f 6c 65 20 62 |icit Hyp|erbole b|
|00000f60| 75 74 74 6f 6e 2e 22 5d | 29 0a 28 66 73 65 74 20 |utton."]|).(fset |
|00000f70| 27 65 62 75 74 3a 6b 65 | 79 2d 6f 66 2d 6c 61 62 |'ebut:ke|y-of-lab|
|00000f80| 65 6c 2d 70 20 23 5b 28 | 6b 65 79 20 6c 61 62 65 |el-p #[(|key labe|
|00000f90| 6c 29 20 22 08 3b ad 8a | 09 3b ad 86 08 c2 09 21 |l) ".;..|.;.....!|
|00000fa0| 97 9a 87 22 20 5b 6b 65 | 79 20 6c 61 62 65 6c 20 |..." [ke|y label |
|00000fb0| 65 62 75 74 3a 6c 61 62 | 65 6c 2d 74 6f 2d 6b 65 |ebut:lab|el-to-ke|
|00000fc0| 79 5d 20 33 20 22 5c 0a | 52 65 74 75 72 6e 73 20 |y] 3 "\.|Returns |
|00000fd0| 74 20 69 66 66 20 4b 45 | 59 20 6d 61 74 63 68 65 |t iff KE|Y matche|
|00000fe0| 73 20 74 6f 20 4c 41 42 | 45 4c 20 69 6e 20 61 20 |s to LAB|EL in a |
|00000ff0| 63 61 73 65 20 69 6e 73 | 65 6e 73 69 74 69 76 65 |case ins|ensitive|
|00001000| 20 6d 61 6e 6e 65 72 2e | 22 5d 29 0a 28 66 73 65 | manner.|"]).(fse|
|00001010| 74 20 27 65 62 75 74 3a | 6b 65 79 2d 73 72 63 20 |t 'ebut:|key-src |
|00001020| 23 5b 28 26 6f 70 74 69 | 6f 6e 61 6c 20 66 75 6c |#[(&opti|onal ful|
|00001030| 6c 29 20 22 c0 20 ab 83 | 70 aa b3 c1 20 ae af 8a |l) ". ..|p... ...|
|00001040| 8c 7e 88 c2 0b c4 c5 23 | ad 8e 68 c6 55 ac 85 60 |.~.....#|..h.U..`|
|00001050| 65 55 ad 84 c7 0e 08 21 | 2a ae 93 0e 09 ab 8e 0e |eU.....!|*.......|
|00001060| 08 ab 84 0e 09 aa 87 ca | 0e 09 21 aa 81 70 89 1e |........|..!..p..|
|00001070| 0b ac 83 c4 aa b1 cc 0e | 0b 21 ab 88 0e 0b 71 88 |........|.!....q.|
|00001080| 0e 0b aa a3 cd 0e 0b 21 | ab 8a ce 0e 0b 21 71 88 |.......!|.....!q.|
|00001090| 0e 0b aa 93 cd cf 0e 0b | 21 89 16 0b 21 ad 88 ce |........|!...!...|
|000010a0| 0e 0b 21 71 88 0e 0b 29 | 87 22 20 5b 68 6d 61 69 |..!q...)|." [hmai|
|000010b0| 6c 3a 6d 6f 64 65 2d 69 | 73 2d 70 20 65 62 75 74 |l:mode-i|s-p ebut|
|000010c0| 3a 6b 65 79 2d 73 72 63 | 2d 66 6d 74 20 73 65 61 |:key-src|-fmt sea|
|000010d0| 72 63 68 2d 62 61 63 6b | 77 61 72 64 20 68 62 75 |rch-back|ward hbu|
|000010e0| 74 3a 73 6f 75 72 63 65 | 2d 70 72 65 66 69 78 20 |t:source|-prefix |
|000010f0| 6e 69 6c 20 74 20 31 30 | 20 68 62 75 74 3a 73 6f |nil t 10| hbut:so|
|00001100| 75 72 63 65 20 66 75 6c | 6c 20 62 75 66 66 65 72 |urce ful|l buffer|
|00001110| 2d 66 69 6c 65 2d 6e 61 | 6d 65 20 66 69 6c 65 2d |-file-na|me file-|
|00001120| 6e 61 6d 65 2d 6e 6f 6e | 64 69 72 65 63 74 6f 72 |name-non|director|
|00001130| 79 20 73 72 63 20 62 75 | 66 66 65 72 70 20 66 69 |y src bu|fferp fi|
|00001140| 6c 65 2d 72 65 61 64 61 | 62 6c 65 2d 70 20 66 69 |le-reada|ble-p fi|
|00001150| 6e 64 2d 66 69 6c 65 2d | 6e 6f 73 65 6c 65 63 74 |nd-file-|noselect|
|00001160| 20 68 70 61 74 68 3a 73 | 79 6d 6c 69 6e 6b 2d 72 | hpath:s|ymlink-r|
|00001170| 65 66 65 72 65 6e 74 5d | 20 35 20 22 5c 0a 52 65 |eferent]| 5 "\.Re|
|00001180| 74 75 72 6e 20 6b 65 79 | 20 73 6f 75 72 63 65 20 |turn key| source |
|00001190| 28 75 73 75 61 6c 6c 79 | 20 75 6e 71 75 61 6c 69 |(usually| unquali|
|000011a0| 66 69 65 64 29 20 66 6f | 72 20 63 75 72 72 65 6e |fied) fo|r curren|
|000011b0| 74 20 48 79 70 65 72 62 | 6f 6c 65 20 62 75 74 74 |t Hyperb|ole butt|
|000011c0| 6f 6e 2e 0a 41 6c 73 6f | 20 73 65 74 73 20 63 75 |on..Also| sets cu|
|000011d0| 72 72 65 6e 74 20 62 75 | 66 66 65 72 20 74 6f 20 |rrent bu|ffer to |
|000011e0| 6b 65 79 20 73 6f 75 72 | 63 65 2e 0a 57 69 74 68 |key sour|ce..With|
|000011f0| 20 6f 70 74 69 6f 6e 61 | 6c 20 46 55 4c 4c 20 77 | optiona|l FULL w|
|00001200| 68 65 6e 20 73 6f 75 72 | 63 65 20 69 73 20 61 20 |hen sour|ce is a |
|00001210| 70 61 74 68 6e 61 6d 65 | 2c 20 74 68 65 20 66 75 |pathname|, the fu|
|00001220| 6c 6c 20 70 61 74 68 6e | 61 6d 65 20 69 73 20 72 |ll pathn|ame is r|
|00001230| 65 74 75 72 6e 65 64 2e | 22 5d 29 0a 28 66 73 65 |eturned.|"]).(fse|
|00001240| 74 20 27 65 62 75 74 3a | 6b 65 79 2d 73 72 63 2d |t 'ebut:|key-src-|
|00001250| 66 6d 74 20 23 5b 6e 69 | 6c 20 22 08 c1 3d ac 87 |fmt #[ni|l "..=..|
|00001260| c2 c3 c4 20 5c 22 ad aa | 0d ad 87 0d c6 c2 c7 0d |... \"..|........|
|00001270| 5c 22 4f 1e 08 c9 0e 08 | ca 50 21 ab 86 0e 08 ca |\"O.....|.P!.....|
|00001280| 50 aa 8f c9 0e 08 cb 50 | 21 ab 86 0e 08 cb 50 aa |P......P|!.....P.|
|00001290| 81 70 29 87 22 20 5b 6d | 61 6a 6f 72 2d 6d 6f 64 |.p)." [m|ajor-mod|
|000012a0| 65 20 49 6e 66 6f 2d 6d | 6f 64 65 20 73 74 72 69 |e Info-m|ode stri|
|000012b0| 6e 67 2d 6d 61 74 63 68 | 20 22 5c 5c 2e 69 6e 66 |ng-match| "\\.inf|
|000012c0| 6f 5c 5c 28 2d 5b 30 2d | 39 5d 2b 5c 5c 29 3f 24 |o\\(-[0-|9]+\\)?$|
|000012d0| 22 20 62 75 66 66 65 72 | 2d 6e 61 6d 65 20 62 75 |" buffer|-name bu|
|000012e0| 66 66 65 72 2d 66 69 6c | 65 2d 6e 61 6d 65 20 30 |ffer-fil|e-name 0|
|000012f0| 20 22 5c 5c 2e 5b 5e 2e | 5d 2b 24 22 20 73 72 63 | "\\.[^.|]+$" src|
|00001300| 20 66 69 6c 65 2d 65 78 | 69 73 74 73 2d 70 20 22 | file-ex|ists-p "|
|00001310| 2e 74 65 78 69 22 20 22 | 2e 74 65 78 69 6e 66 6f |.texi" "|.texinfo|
|00001320| 22 5d 20 35 20 22 5c 0a | 52 65 74 75 72 6e 73 20 |"] 5 "\.|Returns |
|00001330| 75 6e 66 6f 72 6d 61 74 | 74 65 64 20 66 69 6c 65 |unformat|ted file|
|00001340| 6e 61 6d 65 20 61 73 73 | 6f 63 69 61 74 65 64 20 |name ass|ociated |
|00001350| 77 69 74 68 20 66 6f 72 | 6d 61 74 74 65 64 20 63 |with for|matted c|
|00001360| 75 72 72 65 6e 74 20 62 | 75 66 66 65 72 2e 0a 54 |urrent b|uffer..T|
|00001370| 68 69 73 20 69 73 20 75 | 73 65 64 20 74 6f 20 6f |his is u|sed to o|
|00001380| 62 74 61 69 6e 20 74 68 | 65 20 73 6f 75 72 63 65 |btain th|e source|
|00001390| 20 6f 66 20 65 78 70 6c | 69 63 69 74 20 62 75 74 | of expl|icit but|
|000013a0| 74 6f 6e 73 20 66 6f 72 | 20 62 75 66 66 65 72 73 |tons for| buffers|
|000013b0| 20 74 68 61 74 0a 72 65 | 70 72 65 73 65 6e 74 20 | that.re|present |
|000013c0| 74 68 65 20 6f 75 74 70 | 75 74 20 6f 66 20 70 61 |the outp|ut of pa|
|000013d0| 72 74 69 63 75 6c 61 72 | 20 64 6f 63 75 6d 65 6e |rticular| documen|
|000013e0| 74 20 66 6f 72 6d 61 74 | 74 65 72 73 2e 22 5d 29 |t format|ters."])|
|000013f0| 0a 28 66 73 65 74 20 27 | 65 62 75 74 3a 6b 65 79 |.(fset '|ebut:key|
|00001400| 2d 74 6f 2d 6c 61 62 65 | 6c 20 23 5b 28 6c 62 6c |-to-labe|l #[(lbl|
|00001410| 2d 6b 65 79 29 20 22 08 | ad c0 c1 1a 08 47 1b c4 |-key) ".|.....G..|
|00001420| 1d c4 1e 06 5c 6e 0b 57 | ab af 08 5c 6e 48 16 06 |....\n.W|...\nH..|
|00001430| 0d 0e 06 c7 55 ab 97 5c | 6e 54 0b 55 ac 88 08 5c |....U..\|nT.U...\|
|00001440| 6e 54 48 c7 55 ac 83 c8 | aa 8a 5c 6e 54 12 c9 aa |nTH.U...|..\nT...|
|00001450| 84 ca 0e 06 21 50 15 5c | 6e 54 89 12 aa 4d 0d 2c |....!P.\|nT...M.,|
|00001460| 87 22 20 5b 6c 62 6c 2d | 6b 65 79 20 30 20 70 6f |." [lbl-|key 0 po|
|00001470| 73 20 6c 65 6e 20 6e 69 | 6c 20 6c 62 6c 20 63 20 |s len ni|l lbl c |
|00001480| 39 35 20 22 20 22 20 22 | 5f 22 20 63 68 61 72 2d |95 " " "|_" char-|
|00001490| 74 6f 2d 73 74 72 69 6e | 67 5d 20 34 20 22 5c 0a |to-strin|g] 4 "\.|
|000014a0| 55 6e 6e 6f 72 6d 61 6c | 69 7a 65 73 20 4c 42 4c |Unnormal|izes LBL|
|000014b0| 2d 4b 45 59 20 61 6e 64 | 20 72 65 74 75 72 6e 73 |-KEY and| returns|
|000014c0| 20 61 20 6c 61 62 65 6c | 20 73 74 72 69 6e 67 20 | a label| string |
|000014d0| 61 70 70 72 6f 78 69 6d | 61 74 69 6e 67 20 61 63 |approxim|ating ac|
|000014e0| 74 75 61 6c 20 6c 61 62 | 65 6c 2e 22 5d 29 0a 28 |tual lab|el."]).(|
|000014f0| 66 73 65 74 20 27 65 62 | 75 74 3a 6c 61 62 65 6c |fset 'eb|ut:label|
|00001500| 2d 70 20 23 5b 28 26 6f | 70 74 69 6f 6e 61 6c 20 |-p #[(&o|ptional |
|00001510| 61 73 2d 6c 61 62 65 6c | 20 73 74 61 72 74 2d 64 |as-label| start-d|
|00001520| 65 6c 69 6d 20 65 6e 64 | 2d 64 65 6c 69 6d 20 70 |elim end|-delim p|
|00001530| 6f 73 2d 66 6c 61 67 29 | 20 22 60 60 54 c0 c1 89 |os-flag)| "``T...|
|00001540| 89 89 89 1a 1b 1c 1d 1e | 06 1e 07 1e 08 1e 09 0e |........|........|
|00001550| 5c 6e ac 84 0e 0b 16 5c | 6e 0e 0c ac 84 0e 0d 16 |\n.....\|n.......|
|00001560| 0c 8a ce 79 88 cf 0e 07 | d0 0e 5c 6e 21 50 0e 08 |...y....|..\n!P..|
|00001570| d1 23 ab 85 d1 16 06 aa | 6d 0e 06 ab 92 cf d2 d0 |.#......|m.......|
|00001580| 0e 0c 21 50 0e 08 d1 23 | ab 85 c1 16 06 aa 57 0e |..!P...#|......W.|
|00001590| 06 ad e4 60 16 06 d3 95 | 13 68 7a d4 55 ab 87 c1 |...`....|.hz.U...|
|000015a0| d5 d6 8f 88 aa 85 0e 09 | 53 62 88 60 0e 06 0e 17 |........|Sb.`....|
|000015b0| 5c 5c 57 ad c3 cf 0e 07 | d0 0e 0c 21 50 0e 06 0e |\\W.....|...!P...|
|000015c0| 17 5c 5c d1 23 ad b2 60 | 12 60 0e 0c 47 5a 14 d8 |.\\.#..`|.`..GZ..|
|000015d0| 0e 06 0c 7b 21 89 15 ad | a0 0e 19 ab 92 0e 1a ab |...{!...|........|
|000015e0| 88 db 0d 21 0b 5c 6e 45 | aa 90 0d 0b 5c 6e 45 aa |...!.\nE|....\nE.|
|000015f0| 8a 0e 1a ab 85 db 0d 21 | aa 81 0d 2e 09 87 22 20 |.......!|......" |
|00001600| 5b 22 5c 5c 28 5e 5c 5c | 7c 5b 5e 5c 5c 7b 5d 5c |["\\(^\\||[^\\{]\|
|00001610| 5c 29 22 20 6e 69 6c 20 | 62 75 74 2d 65 6e 64 20 |\)" nil |but-end |
|00001620| 62 75 74 2d 73 74 61 72 | 74 20 65 6e 64 20 6c 62 |but-star|t end lb|
|00001630| 6c 2d 6b 65 79 20 73 74 | 61 72 74 20 71 75 6f 74 |l-key st|art quot|
|00001640| 65 64 20 6e 70 6f 69 6e | 74 20 6f 70 6f 69 6e 74 |ed npoin|t opoint|
|00001650| 20 73 74 61 72 74 2d 64 | 65 6c 69 6d 20 65 62 75 | start-d|elim ebu|
|00001660| 74 3a 73 74 61 72 74 20 | 65 6e 64 2d 64 65 6c 69 |t:start |end-deli|
|00001670| 6d 20 65 62 75 74 3a 65 | 6e 64 20 30 20 72 65 2d |m ebut:e|nd 0 re-|
|00001680| 73 65 61 72 63 68 2d 66 | 6f 72 77 61 72 64 20 72 |search-f|orward r|
|00001690| 65 67 65 78 70 2d 71 75 | 6f 74 65 20 74 20 22 5b |egexp-qu|ote t "[|
|000016a0| 5e 5c 5c 7b 5d 22 20 31 | 20 34 30 20 28 62 79 74 |^\\{]" 1| 40 (byt|
|000016b0| 65 2d 63 6f 64 65 20 22 | c0 75 88 c1 20 88 c2 75 |e-code "|.u.. ..u|
|000016c0| 87 22 20 5b 2d 31 20 66 | 6f 72 77 61 72 64 2d 6c |." [-1 f|orward-l|
|000016d0| 69 73 74 20 2d 32 5d 20 | 31 29 20 28 28 65 72 72 |ist -2] |1) ((err|
|000016e0| 6f 72 20 28 62 79 74 65 | 2d 63 6f 64 65 20 22 08 |or (byte|-code ".|
|000016f0| 53 62 87 22 20 5b 6f 70 | 6f 69 6e 74 5d 20 31 29 |Sb." [op|oint] 1)|
|00001700| 29 29 20 65 62 75 74 3a | 6d 61 78 2d 6c 65 6e 20 |)) ebut:|max-len |
|00001710| 65 62 75 74 3a 6c 61 62 | 65 6c 2d 74 6f 2d 6b 65 |ebut:lab|el-to-ke|
|00001720| 79 20 70 6f 73 2d 66 6c | 61 67 20 61 73 2d 6c 61 |y pos-fl|ag as-la|
|00001730| 62 65 6c 20 65 62 75 74 | 3a 6b 65 79 2d 74 6f 2d |bel ebut|:key-to-|
|00001740| 6c 61 62 65 6c 5d 20 38 | 20 22 5c 0a 52 65 74 75 |label] 8| "\.Retu|
|00001750| 72 6e 73 20 6b 65 79 20 | 66 6f 72 20 48 79 70 65 |rns key |for Hype|
|00001760| 72 62 6f 6c 65 20 62 75 | 74 74 6f 6e 20 6c 61 62 |rbole bu|tton lab|
|00001770| 65 6c 20 74 68 61 74 20 | 70 6f 69 6e 74 20 69 73 |el that |point is|
|00001780| 20 77 69 74 68 69 6e 2e | 0a 52 65 74 75 72 6e 73 | within.|.Returns|
|00001790| 20 6e 69 6c 20 69 66 20 | 6e 6f 74 20 77 69 74 68 | nil if |not with|
|000017a0| 69 6e 20 61 20 6c 61 62 | 65 6c 2e 0a 41 73 73 75 |in a lab|el..Assu|
|000017b0| 6d 65 73 20 70 6f 69 6e | 74 20 69 73 20 77 69 74 |mes poin|t is wit|
|000017c0| 68 69 6e 20 66 69 72 73 | 74 20 6c 69 6e 65 20 6f |hin firs|t line o|
|000017d0| 66 20 62 75 74 74 6f 6e | 20 6c 61 62 65 6c 2c 20 |f button| label, |
|000017e0| 69 66 20 61 74 20 61 6c | 6c 2e 0a 49 66 20 6f 70 |if at al|l..If op|
|000017f0| 74 69 6f 6e 61 6c 20 41 | 53 2d 4c 41 42 45 4c 20 |tional A|S-LABEL |
|00001800| 69 73 20 6e 6f 6e 2d 6e | 69 6c 2c 20 6c 61 62 65 |is non-n|il, labe|
|00001810| 6c 20 69 73 20 72 65 74 | 75 72 6e 65 64 20 72 61 |l is ret|urned ra|
|00001820| 74 68 65 72 20 74 68 61 | 6e 20 74 68 65 20 6b 65 |ther tha|n the ke|
|00001830| 79 0a 64 65 72 69 76 65 | 64 20 66 72 6f 6d 20 74 |y.derive|d from t|
|00001840| 68 65 20 6c 61 62 65 6c | 2e 20 20 4f 70 74 69 6f |he label|. Optio|
|00001850| 6e 61 6c 20 53 54 41 52 | 54 2d 44 45 4c 49 4d 20 |nal STAR|T-DELIM |
|00001860| 61 6e 64 20 45 4e 44 2d | 44 45 4c 49 4d 20 61 72 |and END-|DELIM ar|
|00001870| 65 20 73 74 72 69 6e 67 | 73 0a 74 68 61 74 20 6f |e string|s.that o|
|00001880| 76 65 72 72 69 64 65 20 | 64 65 66 61 75 6c 74 20 |verride |default |
|00001890| 62 75 74 74 6f 6e 20 64 | 65 6c 69 6d 69 74 65 72 |button d|elimiter|
|000018a0| 73 2e 20 20 57 69 74 68 | 20 6f 70 74 69 6f 6e 61 |s. With| optiona|
|000018b0| 6c 20 50 4f 53 2d 46 4c | 41 47 20 6e 6f 6e 2d 6e |l POS-FL|AG non-n|
|000018c0| 69 6c 2c 0a 72 65 74 75 | 72 6e 73 20 6c 69 73 74 |il,.retu|rns list|
|000018d0| 20 6f 66 20 6c 61 62 65 | 6c 2d 6f 72 2d 6b 65 79 | of labe|l-or-key|
|000018e0| 2c 20 62 75 74 2d 73 74 | 61 72 74 2d 70 6f 73 69 |, but-st|art-posi|
|000018f0| 74 69 6f 6e 2c 20 62 75 | 74 2d 65 6e 64 2d 70 6f |tion, bu|t-end-po|
|00001900| 73 69 74 69 6f 6e 2e 0a | 50 6f 73 69 74 69 6f 6e |sition..|Position|
|00001910| 73 20 69 6e 63 6c 75 64 | 65 20 64 65 6c 69 6d 69 |s includ|e delimi|
|00001920| 74 65 72 73 2e 22 5d 29 | 0a 28 66 73 65 74 20 27 |ters."])|.(fset '|
|00001930| 65 62 75 74 3a 6c 61 62 | 65 6c 2d 72 65 67 65 78 |ebut:lab|el-regex|
|00001940| 70 20 23 5b 28 6c 62 6c | 2d 6b 65 79 20 26 6f 70 |p #[(lbl|-key &op|
|00001950| 74 69 6f 6e 61 6c 20 6e | 6f 2d 64 65 6c 69 6d 29 |tional n|o-delim)|
|00001960| 20 22 08 ad ec c1 1a 08 | 47 1b c4 1d c6 1e 07 c8 | "......|G.......|
|00001970| 1e 09 0e 5c 6e ab 83 cb | aa 87 cc 0e 0d 21 0e 07 |...\n...|.....!..|
|00001980| 50 1e 0e c4 1e 0f 5c 6e | 0b 57 ab b1 08 5c 6e 48 |P.....\n|.W...\nH|
|00001990| 15 0e 0e 0d d0 55 ab 98 | 5c 6e 54 0b 55 ac 88 08 |.....U..|\nT.U...|
|000019a0| 5c 6e 54 48 d0 55 ac 84 | 0e 09 aa 8b 5c 6e 54 12 |\nTH.U..|....\nT.|
|000019b0| d1 aa 85 cc d2 0d 21 21 | 50 16 0e 5c 6e 54 89 12 |......!!|P..\nT..|
|000019c0| aa 4b 0e 5c 6e ab 84 0e | 0e aa 8c 0e 0e 0e 07 cc |.K.\n...|........|
|000019d0| 0e 13 21 51 89 16 0e 2e | 07 87 22 20 5b 6c 62 6c |..!Q....|.." [lbl|
|000019e0| 2d 6b 65 79 20 30 20 70 | 6f 73 20 6c 65 6e 20 6e |-key 0 p|os len n|
|000019f0| 69 6c 20 63 20 22 5b 20 | 09 5c 6e 0d 5d 2a 22 20 |il c "[ |.\n.]*" |
|00001a00| 73 65 70 30 20 22 5b 20 | 09 5c 6e 0d 5d 2b 22 20 |sep0 "[ |.\n.]+" |
|00001a10| 73 65 70 20 6e 6f 2d 64 | 65 6c 69 6d 20 22 22 20 |sep no-d|elim "" |
|00001a20| 72 65 67 65 78 70 2d 71 | 75 6f 74 65 20 65 62 75 |regexp-q|uote ebu|
|00001a30| 74 3a 73 74 61 72 74 20 | 72 65 67 65 78 70 20 63 |t:start |regexp c|
|00001a40| 61 73 65 2d 66 6f 6c 64 | 2d 73 65 61 72 63 68 20 |ase-fold|-search |
|00001a50| 39 35 20 22 5f 22 20 63 | 68 61 72 2d 74 6f 2d 73 |95 "_" c|har-to-s|
|00001a60| 74 72 69 6e 67 20 65 62 | 75 74 3a 65 6e 64 5d 20 |tring eb|ut:end] |
|00001a70| 35 20 22 5c 0a 55 6e 6e | 6f 72 6d 61 6c 69 7a 65 |5 "\.Unn|ormalize|
|00001a80| 73 20 4c 42 4c 2d 4b 45 | 59 2e 20 20 52 65 74 75 |s LBL-KE|Y. Retu|
|00001a90| 72 6e 73 20 72 65 67 75 | 6c 61 72 20 65 78 70 72 |rns regu|lar expr|
|00001aa0| 20 6d 61 74 63 68 69 6e | 67 20 64 65 6c 69 6d 69 | matchin|g delimi|
|00001ab0| 74 65 64 20 62 75 74 20 | 6c 61 62 65 6c 2e 0a 4f |ted but |label..O|
|00001ac0| 70 74 69 6f 6e 61 6c 20 | 4e 4f 2d 44 45 4c 49 4d |ptional |NO-DELIM|
|00001ad0| 20 6c 65 61 76 65 73 20 | 6f 66 66 20 64 65 6c 69 | leaves |off deli|
|00001ae0| 6d 69 74 65 72 73 20 61 | 6e 64 20 6c 65 61 64 69 |miters a|nd leadi|
|00001af0| 6e 67 20 61 6e 64 20 74 | 72 61 69 6c 69 6e 67 20 |ng and t|railing |
|00001b00| 73 70 61 63 65 2e 22 5d | 29 0a 28 66 73 65 74 20 |space."]|).(fset |
|00001b10| 27 65 62 75 74 3a 6c 61 | 62 65 6c 2d 74 6f 2d 6b |'ebut:la|bel-to-k|
|00001b20| 65 79 20 23 5b 28 6c 61 | 62 65 6c 29 20 22 08 3f |ey #[(la|bel) ".?|
|00001b30| 3f ad 97 c1 08 21 10 c2 | c3 08 c4 23 10 c2 c5 08 |?....!..|...#....|
|00001b40| c6 c7 24 10 c2 c8 08 c5 | c7 24 87 22 20 5b 6c 61 |..$.....|.$." [la|
|00001b50| 62 65 6c 20 68 62 75 74 | 3a 66 69 6c 6c 2d 70 72 |bel hbut|:fill-pr|
|00001b60| 65 66 69 78 2d 72 65 6d | 6f 76 65 20 68 79 70 62 |efix-rem|ove hypb|
|00001b70| 3a 72 65 70 6c 61 63 65 | 2d 6d 61 74 63 68 2d 73 |:replace|-match-s|
|00001b80| 74 72 69 6e 67 20 22 5c | 5c 60 5b 20 09 5c 6e 0d |tring "\|\`[ .\n.|
|00001b90| 5d 2b 5c 5c 7c 5b 20 09 | 5c 6e 0d 5d 2b 5c 5c 27 |]+\\|[ .|\n.]+\\'|
|00001ba0| 22 20 22 22 20 22 5f 22 | 20 22 5f 5f 22 20 74 20 |" "" "_"| "__" t |
|00001bb0| 22 5b 20 09 5c 6e 0d 5d | 2b 22 5d 20 35 20 22 5c |"[ .\n.]|+"] 5 "\|
|00001bc0| 0a 4e 6f 72 6d 61 6c 69 | 7a 65 73 20 4c 41 42 45 |.Normali|zes LABE|
|00001bd0| 4c 20 66 6f 72 20 75 73 | 65 20 61 73 20 61 20 48 |L for us|e as a H|
|00001be0| 79 70 65 72 62 6f 6c 65 | 20 62 75 74 74 6f 6e 20 |yperbole| button |
|00001bf0| 6b 65 79 20 61 6e 64 20 | 72 65 74 75 72 6e 73 20 |key and |returns |
|00001c00| 6b 65 79 2e 0a 45 6c 69 | 6d 69 6e 61 74 65 73 20 |key..Eli|minates |
|00001c10| 61 6e 79 20 66 69 6c 6c | 20 70 72 65 66 69 78 20 |any fill| prefix |
|00001c20| 69 6e 20 74 68 65 20 6d | 69 64 64 6c 65 20 6f 66 |in the m|iddle of|
|00001c30| 20 74 68 65 20 6c 61 62 | 65 6c 2c 20 72 65 70 6c | the lab|el, repl|
|00001c40| 61 63 65 73 20 27 5f 27 | 20 77 69 74 68 0a 27 5f |aces '_'| with.'_|
|00001c50| 5f 27 2c 20 72 65 6d 6f | 76 65 73 20 6c 65 61 64 |_', remo|ves lead|
|00001c60| 69 6e 67 20 61 6e 64 20 | 74 72 61 69 6c 69 6e 67 |ing and |trailing|
|00001c70| 20 77 68 69 74 65 73 70 | 61 63 65 20 61 6e 64 20 | whitesp|ace and |
|00001c80| 72 65 70 6c 61 63 65 73 | 20 65 61 63 68 20 6f 74 |replaces| each ot|
|00001c90| 68 65 72 0a 77 68 69 74 | 65 73 70 61 63 65 20 73 |her.whit|espace s|
|00001ca0| 65 71 75 65 6e 63 65 20 | 77 69 74 68 20 27 5f 27 |equence |with '_'|
|00001cb0| 2e 22 5d 29 0a 28 66 73 | 65 74 20 27 65 62 75 74 |."]).(fs|et 'ebut|
|00001cc0| 3a 6c 69 73 74 20 23 5b | 28 26 6f 70 74 69 6f 6e |:list #[|(&option|
|00001cd0| 61 6c 20 66 69 6c 65 20 | 6c 6f 63 2d 70 29 20 22 |al file |loc-p) "|
|00001ce0| 08 ab 8a c1 08 21 ad 86 | c2 08 21 aa 81 70 89 10 |.....!..|..!..p..|
|00001cf0| ad 9b 08 71 88 c3 0c ab | 83 c5 aa 81 c6 21 1e 07 |...q....|.....!..|
|00001d00| 0c ab 84 0e 07 aa 85 c8 | 0e 07 21 9f 29 87 22 20 |........|..!.)." |
|00001d10| 5b 66 69 6c 65 20 66 69 | 6c 65 2d 65 78 69 73 74 |[file fi|le-exist|
|00001d20| 73 2d 70 20 66 69 6e 64 | 2d 66 69 6c 65 2d 6e 6f |s-p find|-file-no|
|00001d30| 73 65 6c 65 63 74 20 65 | 62 75 74 3a 6d 61 70 20 |select e|but:map |
|00001d40| 6c 6f 63 2d 70 20 23 5b | 28 6c 62 6c 20 73 74 61 |loc-p #[|(lbl sta|
|00001d50| 72 74 20 65 6e 64 29 20 | 22 c0 c1 5c 6e 21 21 0b |rt end) |"..\n!!.|
|00001d60| 0c 45 87 22 20 5b 65 62 | 75 74 3a 6b 65 79 2d 74 |.E." [eb|ut:key-t|
|00001d70| 6f 2d 6c 61 62 65 6c 20 | 65 62 75 74 3a 6c 61 62 |o-label |ebut:lab|
|00001d80| 65 6c 2d 74 6f 2d 6b 65 | 79 20 6c 62 6c 20 73 74 |el-to-ke|y lbl st|
|00001d90| 61 72 74 20 65 6e 64 5d | 20 33 5d 20 23 5b 28 6c |art end]| 3] #[(l|
|00001da0| 62 6c 20 73 74 61 72 74 | 20 65 6e 64 29 20 22 c0 |bl start| end) ".|
|00001db0| c1 5c 6e 21 21 87 22 20 | 5b 65 62 75 74 3a 6b 65 |.\n!!." |[ebut:ke|
|00001dc0| 79 2d 74 6f 2d 6c 61 62 | 65 6c 20 65 62 75 74 3a |y-to-lab|el ebut:|
|00001dd0| 6c 61 62 65 6c 2d 74 6f | 2d 6b 65 79 20 6c 62 6c |label-to|-key lbl|
|00001de0| 5d 20 33 5d 20 62 75 74 | 73 20 73 65 74 3a 63 72 |] 3] but|s set:cr|
|00001df0| 65 61 74 65 5d 20 33 20 | 22 5c 0a 52 65 74 75 72 |eate] 3 |"\.Retur|
|00001e00| 6e 73 20 6c 69 73 74 20 | 6f 66 20 62 75 74 74 6f |ns list |of butto|
|00001e10| 6e 20 6c 61 62 65 6c 73 | 20 66 72 6f 6d 20 67 69 |n labels| from gi|
|00001e20| 76 65 6e 20 46 49 4c 45 | 20 6f 72 20 63 75 72 72 |ven FILE| or curr|
|00001e30| 65 6e 74 20 62 75 66 66 | 65 72 2e 0a 52 65 6d 6f |ent buff|er..Remo|
|00001e40| 76 65 73 20 64 75 70 6c | 69 63 61 74 65 20 6c 61 |ves dupl|icate la|
|00001e50| 62 65 6c 73 20 69 66 20 | 6f 70 74 69 6f 6e 61 6c |bels if |optional|
|00001e60| 20 4c 4f 43 2d 50 20 69 | 73 20 6f 6d 69 74 74 65 | LOC-P i|s omitte|
|00001e70| 64 2e 20 20 57 69 74 68 | 20 4c 4f 43 2d 50 2c 20 |d. With| LOC-P, |
|00001e80| 72 65 74 75 72 6e 73 0a | 6c 69 73 74 20 6f 66 20 |returns.|list of |
|00001e90| 65 6c 65 6d 65 6e 74 73 | 20 28 6c 61 62 65 6c 20 |elements| (label |
|00001ea0| 73 74 61 72 74 20 65 6e | 64 29 20 77 68 65 72 65 |start en|d) where|
|00001eb0| 20 73 74 61 72 74 20 61 | 6e 64 20 65 6e 64 20 61 | start a|nd end a|
|00001ec0| 72 65 20 74 68 65 20 62 | 75 66 66 65 72 0a 70 6f |re the b|uffer.po|
|00001ed0| 73 69 74 69 6f 6e 73 20 | 61 74 20 77 68 69 63 68 |sitions |at which|
|00001ee0| 20 74 68 65 20 73 74 61 | 72 74 69 6e 67 20 62 75 | the sta|rting bu|
|00001ef0| 74 74 6f 6e 20 64 65 6c | 69 6d 69 74 65 72 20 62 |tton del|imiter b|
|00001f00| 65 67 69 6e 73 20 61 6e | 64 20 65 6e 64 73 2e 22 |egins an|d ends."|
|00001f10| 20 6e 69 6c 5d 29 0a 28 | 66 73 65 74 20 27 6d 61 | nil]).(|fset 'ma|
|00001f20| 70 2d 65 62 75 74 20 27 | 65 62 75 74 3a 6d 61 70 |p-ebut '|ebut:map|
|00001f30| 29 0a 28 66 73 65 74 20 | 27 65 62 75 74 3a 6d 61 |).(fset |'ebut:ma|
|00001f40| 70 20 23 5b 28 62 75 74 | 2d 66 75 6e 63 20 26 6f |p #[(but|-func &o|
|00001f50| 70 74 69 6f 6e 61 6c 20 | 73 74 61 72 74 2d 64 65 |ptional |start-de|
|00001f60| 6c 69 6d 20 65 6e 64 2d | 64 65 6c 69 6d 20 72 65 |lim end-|delim re|
|00001f70| 67 65 78 70 2d 6d 61 74 | 63 68 20 69 6e 63 6c 75 |gexp-mat|ch inclu|
|00001f80| 64 65 2d 64 65 6c 69 6d | 73 29 20 22 08 ac 82 09 |de-delim|s) "....|
|00001f90| 10 5c 6e ac 82 0b 12 5c | 6e 39 89 1c ae 84 5c 6e |.\n....\|n9....\n|
|00001fa0| c5 c6 4f 1e 07 c6 1e 08 | c6 1e 09 c6 1e 5c 6e c6 |..O.....|.....\n.|
|00001fb0| 1e 0b c6 1e 0c c6 1e 0d | 8a 65 62 88 0e 0e ab 83 |........|.eb.....|
|00001fc0| cf aa 81 d0 16 0e d1 0c | ab 83 08 aa 8f d2 08 21 |........|.......!|
|00001fd0| d3 0e 07 d4 0e 07 d5 d2 | 5c 6e 21 b0 07 c6 d6 23 |........|\n!....#|
|00001fe0| ab d0 0e 0e 94 16 5c 6e | 0e 0e 95 16 0b cf 94 cf |......\n|........|
|00001ff0| 95 7b 16 0c d0 94 d0 95 | 7b 16 0d 8a 0e 5c 6e 62 |.{......|{....\nb|
|00002000| 88 68 d7 55 ac 85 68 d8 | 55 ab 83 d6 16 09 29 0e |.h.U..h.|U.....).|
|00002010| 09 ab 85 c6 16 09 aa 31 | 0e 19 ab 88 da 0e 19 0e |.......1|........|
|00002020| 0c 5c 22 ab 25 0e 1b 0e | 0d 0e 5c 6e 0e 0b 23 0e |.\".%...|..\n..#.|
|00002030| 08 42 16 08 aa 15 29 0e | 08 9f 2e 08 87 22 20 5b |.B....).|....." [|
|00002040| 73 74 61 72 74 2d 64 65 | 6c 69 6d 20 65 62 75 74 |start-de|lim ebut|
|00002050| 3a 73 74 61 72 74 20 65 | 6e 64 2d 64 65 6c 69 6d |:start e|nd-delim|
|00002060| 20 65 62 75 74 3a 65 6e | 64 20 72 65 67 65 78 70 | ebut:en|d regexp|
|00002070| 20 2d 31 20 6e 69 6c 20 | 65 6e 64 2d 73 79 6d 20 | -1 nil |end-sym |
|00002080| 72 74 6e 20 71 75 6f 74 | 65 64 20 73 74 61 72 74 |rtn quot|ed start|
|00002090| 20 65 6e 64 20 62 75 74 | 20 6c 62 6c 20 69 6e 63 | end but| lbl inc|
|000020a0| 6c 75 64 65 2d 64 65 6c | 69 6d 73 20 30 20 31 20 |lude-del|ims 0 1 |
|000020b0| 72 65 2d 73 65 61 72 63 | 68 2d 66 6f 72 77 61 72 |re-searc|h-forwar|
|000020c0| 64 20 72 65 67 65 78 70 | 2d 71 75 6f 74 65 20 22 |d regexp|-quote "|
|000020d0| 5c 5c 28 5b 5e 22 20 22 | 5c 22 5d 5b 5e 22 20 22 |\\([^" "|\"][^" "|
|000020e0| 5d 2a 5c 5c 29 22 20 74 | 20 39 32 20 31 32 33 20 |]*\\)" t| 92 123 |
|000020f0| 72 65 67 65 78 70 2d 6d | 61 74 63 68 20 73 74 72 |regexp-m|atch str|
|00002100| 69 6e 67 2d 6d 61 74 63 | 68 20 62 75 74 2d 66 75 |ing-matc|h but-fu|
|00002110| 6e 63 5d 20 31 30 20 22 | 5c 0a 41 70 70 6c 69 65 |nc] 10 "|\.Applie|
|00002120| 73 20 42 55 54 2d 46 55 | 4e 43 20 74 6f 20 62 75 |s BUT-FU|NC to bu|
|00002130| 74 74 6f 6e 73 20 64 65 | 6c 69 6d 69 74 65 64 20 |ttons de|limited |
|00002140| 62 79 20 6f 70 74 69 6f | 6e 61 6c 20 53 54 41 52 |by optio|nal STAR|
|00002150| 54 2d 44 45 4c 49 4d 20 | 61 6e 64 20 45 4e 44 2d |T-DELIM |and END-|
|00002160| 44 45 4c 49 4d 2e 0a 49 | 66 20 52 45 47 45 58 50 |DELIM..I|f REGEXP|
|00002170| 2d 4d 41 54 43 48 20 69 | 73 20 6e 6f 6e 2d 6e 69 |-MATCH i|s non-ni|
|00002180| 6c 2c 20 6f 6e 6c 79 20 | 62 75 74 74 6f 6e 73 20 |l, only |buttons |
|00002190| 77 68 69 63 68 20 6d 61 | 74 63 68 20 74 68 69 73 |which ma|tch this|
|000021a0| 20 61 72 67 75 6d 65 6e | 74 20 61 72 65 0a 63 6f | argumen|t are.co|
|000021b0| 6e 73 69 64 65 72 65 64 | 2e 0a 4d 61 70 73 20 6f |nsidered|..Maps o|
|000021c0| 76 65 72 20 70 6f 72 74 | 69 6f 6e 20 6f 66 20 62 |ver port|ion of b|
|000021d0| 75 66 66 65 72 20 76 69 | 73 69 62 6c 65 20 75 6e |uffer vi|sible un|
|000021e0| 64 65 72 20 61 6e 79 20 | 63 75 72 72 65 6e 74 20 |der any |current |
|000021f0| 72 65 73 74 72 69 63 74 | 69 6f 6e 2e 0a 42 55 54 |restrict|ion..BUT|
|00002200| 2d 46 55 4e 43 20 6d 75 | 73 74 20 74 61 6b 65 20 |-FUNC mu|st take |
|00002210| 70 72 65 63 69 73 65 6c | 79 20 74 68 72 65 65 20 |precisel|y three |
|00002220| 61 72 67 75 6d 65 6e 74 | 73 3a 20 74 68 65 20 62 |argument|s: the b|
|00002230| 75 74 74 6f 6e 20 6c 61 | 62 65 6c 2c 20 74 68 65 |utton la|bel, the|
|00002240| 0a 73 74 61 72 74 20 70 | 6f 73 69 74 69 6f 6e 20 |.start p|osition |
|00002250| 6f 66 20 74 68 65 20 64 | 65 6c 69 6d 69 74 65 64 |of the d|elimited|
|00002260| 20 62 75 74 74 6f 6e 20 | 6c 61 62 65 6c 20 61 6e | button |label an|
|00002270| 64 20 69 74 73 20 65 6e | 64 20 70 6f 73 69 74 69 |d its en|d positi|
|00002280| 6f 6e 20 28 70 6f 73 69 | 74 69 6f 6e 73 0a 69 6e |on (posi|tions.in|
|00002290| 63 6c 75 64 65 20 64 65 | 6c 69 6d 69 74 65 72 73 |clude de|limiters|
|000022a0| 20 77 68 65 6e 20 49 4e | 43 4c 55 44 45 2d 44 45 | when IN|CLUDE-DE|
|000022b0| 4c 49 4d 53 20 69 73 20 | 6e 6f 6e 2d 6e 69 6c 29 |LIMS is |non-nil)|
|000022c0| 2e 0a 49 66 20 45 4e 44 | 2d 44 45 4c 49 4d 20 69 |..If END|-DELIM i|
|000022d0| 73 20 61 20 73 79 6d 62 | 6f 6c 2c 20 65 2e 67 2e |s a symb|ol, e.g.|
|000022e0| 20 74 2c 20 74 68 65 6e | 20 53 54 41 52 54 2d 44 | t, then| START-D|
|000022f0| 45 4c 49 4d 20 69 73 20 | 74 61 6b 65 6e 20 61 73 |ELIM is |taken as|
|00002300| 20 61 20 72 65 67 75 6c | 61 72 0a 65 78 70 72 65 | a regul|ar.expre|
|00002310| 73 73 69 6f 6e 20 77 68 | 69 63 68 20 6d 61 74 63 |ssion wh|ich matc|
|00002320| 68 65 73 20 61 6e 20 65 | 6e 74 69 72 65 20 62 75 |hes an e|ntire bu|
|00002330| 74 74 6f 6e 20 73 74 72 | 69 6e 67 2e 22 5d 29 0a |tton str|ing."]).|
|00002340| 28 66 73 65 74 20 27 65 | 62 75 74 3a 6d 6f 64 69 |(fset 'e|but:modi|
|00002350| 66 79 20 23 5b 28 26 6f | 70 74 69 6f 6e 61 6c 20 |fy #[(&o|ptional |
|00002360| 6c 62 6c 2d 6b 65 79 20 | 62 75 74 2d 73 79 6d 29 |lbl-key |but-sym)|
|00002370| 20 22 8a c0 09 5c 6e 5c | 22 1b c4 c5 21 88 0b 2a | "...\n\|"...!..*|
|00002380| 87 22 20 5b 68 62 64 61 | 74 61 3a 77 72 69 74 65 |." [hbda|ta:write|
|00002390| 20 6c 62 6c 2d 6b 65 79 | 20 62 75 74 2d 73 79 6d | lbl-key| but-sym|
|000023a0| 20 6c 62 6c 2d 69 6e 73 | 74 61 6e 63 65 20 72 75 | lbl-ins|tance ru|
|000023b0| 6e 2d 68 6f 6f 6b 73 20 | 65 62 75 74 3a 6d 6f 64 |n-hooks |ebut:mod|
|000023c0| 69 66 79 2d 68 6f 6f 6b | 5d 20 33 20 22 5c 0a 4d |ify-hook|] 3 "\.M|
|000023d0| 6f 64 69 66 69 65 73 20 | 65 78 69 73 74 69 6e 67 |odifies |existing|
|000023e0| 20 48 79 70 65 72 62 6f | 6c 65 20 62 75 74 74 6f | Hyperbo|le butto|
|000023f0| 6e 20 66 72 6f 6d 20 6f | 70 74 69 6f 6e 61 6c 20 |n from o|ptional |
|00002400| 4c 42 4c 2d 4b 45 59 20 | 61 6e 64 20 42 55 54 2d |LBL-KEY |and BUT-|
|00002410| 53 59 4d 2e 0a 44 65 66 | 61 75 6c 74 73 20 61 72 |SYM..Def|aults ar|
|00002420| 65 20 74 68 65 20 6b 65 | 79 20 66 6f 72 20 61 6e |e the ke|y for an|
|00002430| 79 20 62 75 74 74 6f 6e | 20 6c 61 62 65 6c 20 61 |y button| label a|
|00002440| 74 20 70 6f 69 6e 74 20 | 61 6e 64 20 27 68 62 75 |t point |and 'hbu|
|00002450| 74 3a 63 75 72 72 65 6e | 74 27 2e 0a 49 66 20 73 |t:curren|t'..If s|
|00002460| 75 63 63 65 73 73 66 75 | 6c 2c 20 72 65 74 75 72 |uccessfu|l, retur|
|00002470| 6e 73 20 62 75 74 74 6f | 6e 27 73 20 69 6e 73 74 |ns butto|n's inst|
|00002480| 61 6e 63 65 20 6e 75 6d | 62 65 72 20 65 78 63 65 |ance num|ber exce|
|00002490| 70 74 20 77 68 65 6e 20 | 69 6e 73 74 61 6e 63 65 |pt when |instance|
|000024a0| 0a 6e 75 6d 62 65 72 20 | 69 73 20 31 2c 20 74 68 |.number |is 1, th|
|000024b0| 65 6e 20 72 65 74 75 72 | 6e 73 20 74 2e 20 20 4f |en retur|ns t. O|
|000024c0| 6e 20 66 61 69 6c 75 72 | 65 2c 20 61 73 20 77 68 |n failur|e, as wh|
|000024d0| 65 6e 20 62 75 74 74 6f | 6e 20 64 6f 65 73 20 6e |en butto|n does n|
|000024e0| 6f 74 20 65 78 69 73 74 | 2c 0a 72 65 74 75 72 6e |ot exist|,.return|
|000024f0| 73 20 6e 69 6c 2e 0a 0a | 49 66 20 73 75 63 63 65 |s nil...|If succe|
|00002500| 73 73 66 75 6c 2c 20 6c | 65 61 76 65 73 20 70 6f |ssful, l|eaves po|
|00002510| 69 6e 74 20 69 6e 20 62 | 75 74 74 6f 6e 20 64 61 |int in b|utton da|
|00002520| 74 61 20 62 75 66 66 65 | 72 2c 20 73 6f 20 63 61 |ta buffe|r, so ca|
|00002530| 6c 6c 65 72 20 73 68 6f | 75 6c 64 20 75 73 65 0a |ller sho|uld use.|
|00002540| 27 73 61 76 65 2d 65 78 | 63 75 72 73 69 6f 6e 27 |'save-ex|cursion'|
|00002550| 2e 20 20 44 6f 65 73 20 | 6e 6f 74 20 73 61 76 65 |. Does |not save|
|00002560| 20 62 75 74 74 6f 6e 20 | 64 61 74 61 20 62 75 66 | button |data buf|
|00002570| 66 65 72 2e 22 5d 29 0a | 28 66 73 65 74 20 27 65 |fer."]).|(fset 'e|
|00002580| 62 75 74 3a 6e 65 78 74 | 2d 6f 63 63 75 72 72 65 |but:next|-occurre|
|00002590| 6e 63 65 20 23 5b 28 6c | 62 6c 2d 6b 65 79 20 26 |nce #[(l|bl-key &|
|000025a0| 6f 70 74 69 6f 6e 61 6c | 20 62 75 66 66 65 72 29 |optional| buffer)|
|000025b0| 20 22 08 ab 99 c1 08 21 | ac 90 08 3b ab 85 c2 08 | ".....!|...;....|
|000025c0| 21 ac 87 c3 c4 08 5c 22 | 88 aa 84 c5 08 21 88 c6 |!.....\"|.....!..|
|000025d0| c7 0e 08 21 c9 ca 23 ad | 87 cb 94 0e 0c 47 5c 5c |...!..#.|.....G\\|
|000025e0| 62 87 22 20 5b 62 75 66 | 66 65 72 20 62 75 66 66 |b." [buf|fer buff|
|000025f0| 65 72 70 20 67 65 74 2d | 62 75 66 66 65 72 20 65 |erp get-|buffer e|
|00002600| 72 72 6f 72 20 22 28 65 | 62 75 74 3a 6e 65 78 74 |rror "(e|but:next|
|00002610| 2d 6f 63 63 75 72 72 65 | 6e 63 65 29 3a 20 49 6e |-occurre|nce): In|
|00002620| 76 61 6c 69 64 20 62 75 | 66 66 65 72 20 61 72 67 |valid bu|ffer arg|
|00002630| 3a 20 25 73 22 20 73 77 | 69 74 63 68 2d 74 6f 2d |: %s" sw|itch-to-|
|00002640| 62 75 66 66 65 72 20 72 | 65 2d 73 65 61 72 63 68 |buffer r|e-search|
|00002650| 2d 66 6f 72 77 61 72 64 | 20 65 62 75 74 3a 6c 61 |-forward| ebut:la|
|00002660| 62 65 6c 2d 72 65 67 65 | 78 70 20 6c 62 6c 2d 6b |bel-rege|xp lbl-k|
|00002670| 65 79 20 6e 69 6c 20 74 | 20 30 20 65 62 75 74 3a |ey nil t| 0 ebut:|
|00002680| 73 74 61 72 74 5d 20 34 | 20 22 5c 0a 4d 6f 76 65 |start] 4| "\.Move|
|00002690| 73 20 70 6f 69 6e 74 20 | 74 6f 20 6e 65 78 74 20 |s point |to next |
|000026a0| 6f 63 63 75 72 72 65 6e | 63 65 20 6f 66 20 62 75 |occurren|ce of bu|
|000026b0| 74 74 6f 6e 20 77 69 74 | 68 20 4c 42 4c 2d 4b 45 |tton wit|h LBL-KE|
|000026c0| 59 20 69 6e 20 6f 70 74 | 69 6f 6e 61 6c 20 42 55 |Y in opt|ional BU|
|000026d0| 46 46 45 52 2e 0a 42 55 | 46 46 45 52 20 64 65 66 |FFER..BU|FFER def|
|000026e0| 61 75 6c 74 73 20 74 6f | 20 63 75 72 72 65 6e 74 |aults to| current|
|000026f0| 20 62 75 66 66 65 72 2e | 20 20 49 74 20 6d 61 79 | buffer.| It may|
|00002700| 20 62 65 20 61 20 62 75 | 66 66 65 72 20 6e 61 6d | be a bu|ffer nam|
|00002710| 65 2e 0a 52 65 74 75 72 | 6e 73 20 6e 6f 6e 2d 6e |e..Retur|ns non-n|
|00002720| 69 6c 20 69 66 66 20 6f | 63 63 75 72 72 65 6e 63 |il iff o|ccurrenc|
|00002730| 65 20 69 73 20 66 6f 75 | 6e 64 2e 0a 0a 52 65 6d |e is fou|nd...Rem|
|00002740| 65 6d 62 65 72 20 74 6f | 20 75 73 65 20 28 67 6f |ember to| use (go|
|00002750| 74 6f 2d 63 68 61 72 20 | 28 70 6f 69 6e 74 2d 6d |to-char |(point-m|
|00002760| 69 6e 29 29 20 62 65 66 | 6f 72 65 20 63 61 6c 6c |in)) bef|ore call|
|00002770| 69 6e 67 20 74 68 69 73 | 20 69 6e 20 6f 72 64 65 |ing this| in orde|
|00002780| 72 20 74 6f 0a 6d 6f 76 | 65 20 74 6f 20 74 68 65 |r to.mov|e to the|
|00002790| 20 66 69 72 73 74 20 6f | 63 63 75 72 72 65 6e 63 | first o|ccurrenc|
|000027a0| 65 20 6f 66 20 74 68 65 | 20 62 75 74 74 6f 6e 2e |e of the| button.|
|000027b0| 22 5d 29 0a 28 66 73 65 | 74 20 27 65 62 75 74 3a |"]).(fse|t 'ebut:|
|000027c0| 6f 70 65 72 61 74 65 20 | 23 5b 28 63 75 72 72 2d |operate |#[(curr-|
|000027d0| 6c 61 62 65 6c 20 6e 65 | 77 2d 6c 61 62 65 6c 29 |label ne|w-label)|
|000027e0| 20 22 c0 09 21 1a c3 5c | 6e 21 1c 0d 1e 06 c7 1e | "..!..\|n!......|
|000027f0| 08 0d ac 82 09 15 c9 ca | c2 c0 0d 21 23 88 8a 0e |........|...!#...|
|00002800| 06 ab 85 cb 5c 6e 21 aa | 82 cc 20 89 16 08 ab 87 |....\n!.|.. .....|
|00002810| cd 20 ab 83 ce 20 88 29 | 0e 08 83 02 01 0e 06 ab |. ... .)|........|
|00002820| b5 cf c7 89 89 d0 24 89 | 1e 11 40 c0 0d 21 9a 89 |......$.|..@..!..|
|00002830| 1e 12 ab 8d d3 0e 11 41 | 40 d4 0e 11 38 0e 08 23 |.......A|@...8..#|
|00002840| 88 d5 d6 c7 89 0c d7 25 | ac 89 0e 12 ac 85 d8 d9 |.......%|........|
|00002850| 09 5c 22 88 2a aa cb c7 | 89 89 1e 1a 1e 1b 1e 1c |.\".*...|........|
|00002860| dd de df 21 21 ab 98 e0 | 20 16 1c e1 20 16 1b 0e |...!!...| ... ...|
|00002870| 1c 0e 1b 7b 89 16 1a ab | 86 0e 1a 09 9a ac 99 e2 |...{....|........|
|00002880| e3 09 21 21 ab 89 60 16 | 1c e4 95 16 1b aa 89 60 |..!!..`.|.......`|
|00002890| 16 1c 09 63 88 60 16 1b | d3 0e 1c 0e 1b 0e 08 23 |...c.`..|.......#|
|000028a0| 88 2b c0 0d 21 1e 25 cf | 20 0e 25 9a ab 90 e6 75 |.+..!.%.| .%....u|
|000028b0| 88 e7 0e 28 c7 df 23 88 | e4 95 62 88 aa 9f c3 0e |...(..#.|..b.....|
|000028c0| 25 21 1e 29 ea 0e 29 c7 | df 23 ae 86 eb 0e 29 c7 |%!.)..).|.#....).|
|000028d0| df 23 29 ab 88 e4 94 0e | 28 47 5c 5c 62 88 29 0e |.#).....|(G\\b.).|
|000028e0| 08 3b ad 89 0e 08 aa 85 | d8 ec 0e 2d 5c 22 2c 87 |.;......|...-\",.|
|000028f0| 22 20 5b 65 62 75 74 3a | 6c 61 62 65 6c 2d 74 6f |" [ebut:|label-to|
|00002900| 2d 6b 65 79 20 63 75 72 | 72 2d 6c 61 62 65 6c 20 |-key cur|r-label |
|00002910| 6c 62 6c 2d 6b 65 79 20 | 65 62 75 74 3a 6c 61 62 |lbl-key |ebut:lab|
|00002920| 65 6c 2d 72 65 67 65 78 | 70 20 6c 62 6c 2d 72 65 |el-regex|p lbl-re|
|00002930| 67 65 78 70 20 6e 65 77 | 2d 6c 61 62 65 6c 20 6d |gexp new|-label m|
|00002940| 6f 64 69 66 79 20 6e 69 | 6c 20 69 6e 73 74 61 6e |odify ni|l instan|
|00002950| 63 65 2d 66 6c 61 67 20 | 68 61 74 74 72 3a 73 65 |ce-flag |hattr:se|
|00002960| 74 20 68 62 75 74 3a 63 | 75 72 72 65 6e 74 20 65 |t hbut:c|urrent e|
|00002970| 62 75 74 3a 6d 6f 64 69 | 66 79 20 65 62 75 74 3a |but:modi|fy ebut:|
|00002980| 63 72 65 61 74 65 20 68 | 6d 61 69 6c 3a 65 64 69 |create h|mail:edi|
|00002990| 74 6f 72 2d 70 20 68 6d | 61 69 6c 3a 6d 73 67 2d |tor-p hm|ail:msg-|
|000029a0| 6e 61 72 72 6f 77 20 65 | 62 75 74 3a 6c 61 62 65 |narrow e|but:labe|
|000029b0| 6c 2d 70 20 70 6f 73 20 | 62 75 74 2d 6b 65 79 2d |l-p pos |but-key-|
|000029c0| 61 6e 64 2d 70 6f 73 20 | 61 74 2d 62 75 74 20 65 |and-pos |at-but e|
|000029d0| 62 75 74 3a 64 65 6c 69 | 6d 69 74 20 32 20 65 62 |but:deli|mit 2 eb|
|000029e0| 75 74 3a 6d 61 70 20 23 | 5b 28 6c 62 6c 20 73 74 |ut:map #|[(lbl st|
|000029f0| 61 72 74 20 65 6e 64 29 | 20 22 08 09 7c 88 c2 60 |art end)| "..|..`|
|00002a00| 0b 63 88 60 0c 23 87 22 | 20 5b 73 74 61 72 74 20 |.c.`.#."| [start |
|00002a10| 65 6e 64 20 65 62 75 74 | 3a 64 65 6c 69 6d 69 74 |end ebut|:delimit|
|00002a20| 20 6e 65 77 2d 6c 61 62 | 65 6c 20 69 6e 73 74 61 | new-lab|el insta|
|00002a30| 6e 63 65 2d 66 6c 61 67 | 5d 20 34 5d 20 69 6e 63 |nce-flag|] 4] inc|
|00002a40| 6c 75 64 65 2d 64 65 6c | 69 6d 73 20 68 79 70 62 |lude-del|ims hypb|
|00002a50| 3a 65 72 72 6f 72 20 22 | 28 65 62 75 74 3a 6f 70 |:error "|(ebut:op|
|00002a60| 65 72 61 74 65 29 3a 20 | 4e 6f 20 62 75 74 74 6f |erate): |No butto|
|00002a70| 6e 20 6d 61 74 63 68 69 | 6e 67 3a 20 25 73 22 20 |n matchi|ng: %s" |
|00002a80| 62 75 66 2d 6c 62 6c 20 | 65 6e 64 20 73 74 61 72 |buf-lbl |end star|
|00002a90| 74 20 6d 61 72 6b 65 72 | 2d 70 6f 73 69 74 69 6f |t marker|-positio|
|00002aa0| 6e 20 68 79 70 62 3a 6d | 61 72 6b 2d 6d 61 72 6b |n hypb:m|ark-mark|
|00002ab0| 65 72 20 74 20 72 65 67 | 69 6f 6e 2d 62 65 67 69 |er t reg|ion-begi|
|00002ac0| 6e 6e 69 6e 67 20 72 65 | 67 69 6f 6e 2d 65 6e 64 |nning re|gion-end|
|00002ad0| 20 6c 6f 6f 6b 69 6e 67 | 2d 61 74 20 72 65 67 65 | looking|-at rege|
|00002ae0| 78 70 2d 71 75 6f 74 65 | 20 30 20 6e 65 77 2d 6b |xp-quote| 0 new-k|
|00002af0| 65 79 20 31 20 73 65 61 | 72 63 68 2d 62 61 63 6b |ey 1 sea|rch-back|
|00002b00| 77 61 72 64 20 65 62 75 | 74 3a 73 74 61 72 74 20 |ward ebu|t:start |
|00002b10| 72 65 67 65 78 70 20 72 | 65 2d 73 65 61 72 63 68 |regexp r|e-search|
|00002b20| 2d 66 6f 72 77 61 72 64 | 20 72 65 2d 73 65 61 72 |-forward| re-sear|
|00002b30| 63 68 2d 62 61 63 6b 77 | 61 72 64 20 22 28 65 62 |ch-backw|ard "(eb|
|00002b40| 75 74 3a 6f 70 65 72 61 | 74 65 29 3a 20 4f 70 65 |ut:opera|te): Ope|
|00002b50| 72 61 74 69 6f 6e 20 66 | 61 69 6c 65 64 2e 20 20 |ration f|ailed. |
|00002b60| 43 68 65 63 6b 20 62 75 | 74 74 6f 6e 20 61 74 74 |Check bu|tton att|
|00002b70| 72 69 62 75 74 65 20 70 | 65 72 6d 69 73 73 69 6f |ribute p|ermissio|
|00002b80| 6e 73 3a 20 25 73 22 20 | 68 61 74 74 72 3a 66 69 |ns: %s" |hattr:fi|
|00002b90| 6c 65 6e 61 6d 65 5d 20 | 37 20 22 5c 0a 4f 70 65 |lename] |7 "\.Ope|
|00002ba0| 72 61 74 65 73 20 6f 6e | 20 61 20 6e 65 77 20 6f |rates on| a new o|
|00002bb0| 72 20 65 78 69 73 74 69 | 6e 67 20 48 79 70 65 72 |r existi|ng Hyper|
|00002bc0| 62 6f 6c 65 20 62 75 74 | 74 6f 6e 20 67 69 76 65 |bole but|ton give|
|00002bd0| 6e 20 62 79 20 43 55 52 | 52 2d 4c 41 42 45 4c 2e |n by CUR|R-LABEL.|
|00002be0| 0a 57 68 65 6e 20 4e 45 | 57 2d 4c 41 42 45 4c 20 |.When NE|W-LABEL |
|00002bf0| 69 73 20 6e 6f 6e 2d 6e | 69 6c 2c 20 74 68 69 73 |is non-n|il, this|
|00002c00| 20 69 73 20 73 75 62 73 | 74 69 74 75 74 65 64 20 | is subs|tituted |
|00002c10| 66 6f 72 20 43 55 52 52 | 2d 4c 41 42 45 4c 20 61 |for CURR|-LABEL a|
|00002c20| 6e 64 20 74 68 65 0a 61 | 73 73 6f 63 69 61 74 65 |nd the.a|ssociate|
|00002c30| 64 20 62 75 74 74 6f 6e | 20 69 73 20 6d 6f 64 69 |d button| is modi|
|00002c40| 66 69 65 64 2e 20 20 4f | 74 68 65 72 77 69 73 65 |fied. O|therwise|
|00002c50| 2c 20 61 20 6e 65 77 20 | 62 75 74 74 6f 6e 20 69 |, a new |button i|
|00002c60| 73 20 63 72 65 61 74 65 | 64 2e 0a 52 65 74 75 72 |s create|d..Retur|
|00002c70| 6e 73 20 69 6e 73 74 61 | 6e 63 65 20 73 74 72 69 |ns insta|nce stri|
|00002c80| 6e 67 20 61 70 70 65 6e | 64 65 64 20 74 6f 20 6c |ng appen|ded to l|
|00002c90| 61 62 65 6c 20 74 6f 20 | 66 6f 72 6d 20 75 6e 69 |abel to |form uni|
|00002ca0| 71 75 65 20 6c 61 62 65 | 6c 2c 20 6e 69 6c 20 69 |que labe|l, nil i|
|00002cb0| 66 0a 6c 61 62 65 6c 20 | 69 73 20 61 6c 72 65 61 |f.label |is alrea|
|00002cc0| 64 79 20 75 6e 69 71 75 | 65 2e 20 20 53 69 67 6e |dy uniqu|e. Sign|
|00002cd0| 61 6c 73 20 61 6e 20 65 | 72 72 6f 72 20 77 68 65 |als an e|rror whe|
|00002ce0| 6e 20 6e 6f 20 73 75 63 | 68 20 62 75 74 74 6f 6e |n no suc|h button|
|00002cf0| 20 69 73 20 66 6f 75 6e | 64 0a 69 6e 20 74 68 65 | is foun|d.in the|
|00002d00| 20 63 75 72 72 65 6e 74 | 20 62 75 66 66 65 72 2e | current| buffer.|
|00002d10| 22 5d 29 0a 28 66 73 65 | 74 20 27 65 62 75 74 3a |"]).(fse|t 'ebut:|
|00002d20| 73 65 61 72 63 68 20 23 | 5b 28 73 74 72 69 6e 67 |search #|[(string|
|00002d30| 20 6f 75 74 2d 62 75 66 | 20 26 6f 70 74 69 6f 6e | out-buf| &option|
|00002d40| 61 6c 20 6d 61 74 63 68 | 2d 70 61 72 74 29 20 22 |al match|-part) "|
|00002d50| c0 c1 c2 20 5c 22 1b c4 | 1d c6 1e 07 8a 0e 08 71 |... \"..|.......q|
|00002d60| 88 c6 16 09 7e 88 ca 20 | 88 c6 89 89 89 89 1e 0b |....~.. |........|
|00002d70| 1e 0c 1e 0d 1e 0e 1e 0f | 0b 83 53 01 0b 40 89 16 |........|..S..@..|
|00002d80| 0f 3b ad 82 0e 0f 89 16 | 0e ad 85 d0 0e 0e 21 3f |.;......|......!?|
|00002d90| 16 0d 0b 41 13 0e 0e ab | 94 d1 0e 0e 21 ad 84 d2 |...A....|....!...|
|00002da0| 0e 0e 21 16 0f d3 0e 0e | 21 16 0b aa 86 d4 0e 0f |..!.....|!.......|
|00002db0| 21 16 0e 0e 0e ab 91 0e | 0f ab 8d d5 8e d6 0e 0f |!.......|........|
|00002dc0| 0e 17 0e 18 23 16 0c 29 | 0e 0c ab 2c c6 89 1e 19 |....#..)|...,....|
|00002dd0| 1e 1a 0e 0c 83 4f 01 0e | 0c 40 89 16 1a ab 73 0e |.....O..|.@....s.|
|00002de0| 0c 41 16 0c db 0e 1a 40 | 0e 0b 5c 22 16 0e 0e 1a |.A.....@|..\"....|
|00002df0| 41 16 19 d0 0e 0e 21 89 | 16 0f 3f 16 0d 0e 0f ae |A.....!.|..?.....|
|00002e00| 8a d1 0e 0e 21 ad 84 d2 | 0e 0e 21 89 16 0f ac 8d |....!...|..!.....|
|00002e10| 0e 08 71 88 dc 0e 0e dd | b1 03 88 aa 36 0e 0f 71 |..q.....|....6..q|
|00002e20| 88 de 8e 8a 7e 88 df 62 | 88 e0 e1 0e 19 0e 18 5c |....~..b|.......\|
|00002e30| 22 1e 5c 22 1e 23 e0 16 | 07 e4 0e 5c 22 c6 e0 23 |".\".#..|...\"..#|
|00002e40| ab d3 0d 54 15 e5 65 60 | 5c 22 1e 26 e7 e8 0e 26 |...T..e`|\".&...&|
|00002e50| 5c 22 1e 29 c6 1e 2a c6 | 1e 2b c6 1e 2c c6 7f 88 |\".)..*.|.+..,...|
|00002e60| 60 16 2c c4 94 62 88 c4 | 79 88 60 89 16 2b 0e 2c |`.,..b..|y.`..+.,|
|00002e70| 7b 16 2a 0e 2c 62 88 8a | 0e 08 71 88 0e 07 ab 8c |{.*.,b..|..q.....|
|00002e80| 0e 2d ee 0e 0e ef b1 04 | 88 c6 16 07 0e 29 0e 2a |.-......|.....).*|
|00002e90| b1 02 88 2e 06 aa 25 0e | 08 71 88 0e 07 ac 83 f0 |......%.|.q......|
|00002ea0| 63 88 2c 82 81 00 2a 82 | 27 00 2e 06 0d 2b 87 22 |c.,...*.|'....+."|
|00002eb0| 20 5b 6d 61 70 63 61 72 | 20 23 5b 28 64 69 72 29 | [mapcar| #[(dir)|
|00002ec0| 20 22 c0 09 5c 6e 5c 22 | 87 22 20 5b 65 78 70 61 | "..\n\"|." [expa|
|00002ed0| 6e 64 2d 66 69 6c 65 2d | 6e 61 6d 65 20 68 61 74 |nd-file-|name hat|
|00002ee0| 74 72 3a 66 69 6c 65 6e | 61 6d 65 20 64 69 72 5d |tr:filen|ame dir]|
|00002ef0| 20 33 5d 20 68 62 6d 61 | 70 3a 64 69 72 2d 6c 69 | 3] hbma|p:dir-li|
|00002f00| 73 74 20 62 75 66 66 65 | 72 73 20 30 20 74 6f 74 |st buffe|rs 0 tot|
|00002f10| 61 6c 20 6e 69 6c 20 66 | 69 72 73 74 6d 61 74 63 |al nil f|irstmatc|
|00002f20| 68 20 6f 75 74 2d 62 75 | 66 20 62 75 66 66 65 72 |h out-bu|f buffer|
|00002f30| 2d 72 65 61 64 2d 6f 6e | 6c 79 20 65 72 61 73 65 |-read-on|ly erase|
|00002f40| 2d 62 75 66 66 65 72 20 | 64 69 72 20 73 72 63 2d |-buffer |dir src-|
|00002f50| 6d 61 74 63 68 65 73 20 | 6b 69 6c 6c 2d 62 75 66 |matches |kill-buf|
|00002f60| 20 63 75 72 72 66 69 6c | 65 20 63 75 72 72 62 75 | currfil|e currbu|
|00002f70| 66 20 67 65 74 2d 66 69 | 6c 65 2d 62 75 66 66 65 |f get-fi|le-buffe|
|00002f80| 72 20 66 69 6c 65 2d 72 | 65 61 64 61 62 6c 65 2d |r file-r|eadable-|
|00002f90| 70 20 66 69 6e 64 2d 66 | 69 6c 65 2d 6e 6f 73 65 |p find-f|ile-nose|
|00002fa0| 6c 65 63 74 20 66 69 6c | 65 2d 6e 61 6d 65 2d 64 |lect fil|e-name-d|
|00002fb0| 69 72 65 63 74 6f 72 79 | 20 62 75 66 66 65 72 2d |irectory| buffer-|
|00002fc0| 66 69 6c 65 2d 6e 61 6d | 65 20 28 28 62 79 74 65 |file-nam|e ((byte|
|00002fd0| 2d 63 6f 64 65 20 22 08 | ab 84 c1 5c 6e 21 88 c1 |-code ".|...\n!..|
|00002fe0| 87 22 20 5b 6b 69 6c 6c | 2d 62 75 66 20 6b 69 6c |." [kill|-buf kil|
|00002ff0| 6c 2d 62 75 66 66 65 72 | 20 63 75 72 72 62 75 66 |l-buffer| currbuf|
|00003000| 5d 20 32 29 29 20 68 62 | 64 61 74 61 3a 73 65 61 |] 2)) hb|data:sea|
|00003010| 72 63 68 20 73 74 72 69 | 6e 67 20 6d 61 74 63 68 |rch stri|ng match|
|00003020| 2d 70 61 72 74 20 6d 61 | 74 63 68 65 73 20 65 6c |-part ma|tches el|
|00003030| 74 20 65 78 70 61 6e 64 | 2d 66 69 6c 65 2d 6e 61 |t expand|-file-na|
|00003040| 6d 65 20 22 45 52 52 4f | 52 3a 20 28 65 62 75 74 |me "ERRO|R: (ebut|
|00003050| 3a 73 65 61 72 63 68 29 | 3a 20 5c 22 22 20 22 5c |:search)|: \"" "\|
|00003060| 22 20 69 73 20 6e 6f 74 | 20 72 65 61 64 61 62 6c |" is not| readabl|
|00003070| 65 2e 5c 6e 5c 6e 22 20 | 28 28 62 79 74 65 2d 63 |e.\n\n" |((byte-c|
|00003080| 6f 64 65 20 22 08 ab 84 | c1 5c 6e 21 88 c1 87 22 |ode "...|.\n!..."|
|00003090| 20 5b 6b 69 6c 6c 2d 62 | 75 66 20 6b 69 6c 6c 2d | [kill-b|uf kill-|
|000030a0| 62 75 66 66 65 72 20 63 | 75 72 72 62 75 66 5d 20 |buffer c|urrbuf] |
|000030b0| 32 29 29 20 31 20 74 20 | 65 62 75 74 3a 6d 61 74 |2)) 1 t |ebut:mat|
|000030c0| 63 68 2d 72 65 67 65 78 | 70 20 72 65 67 65 78 70 |ch-regex|p regexp|
|000030d0| 20 63 61 73 65 2d 66 6f | 6c 64 2d 73 65 61 72 63 | case-fo|ld-searc|
|000030e0| 68 20 72 65 2d 73 65 61 | 72 63 68 2d 66 6f 72 77 |h re-sea|rch-forw|
|000030f0| 61 72 64 20 63 6f 75 6e | 74 2d 6c 69 6e 65 73 20 |ard coun|t-lines |
|00003100| 6c 69 6e 65 6e 75 6d 20 | 66 6f 72 6d 61 74 20 22 |linenum |format "|
|00003110| 5c 6e 25 34 64 3a 22 20 | 74 61 67 20 6c 6e 73 20 |\n%4d:" |tag lns |
|00003120| 73 74 61 72 74 20 65 6e | 64 20 68 62 75 74 3a 73 |start en|d hbut:s|
|00003130| 6f 75 72 63 65 2d 70 72 | 65 66 69 78 20 22 5c 22 |ource-pr|efix "\"|
|00003140| 22 20 22 5c 22 5c 6e 22 | 20 22 5c 6e 5c 6e 22 5d |" "\"\n"| "\n\n"]|
|00003150| 20 36 20 22 5c 0a 57 72 | 69 74 65 73 20 65 78 70 | 6 "\.Wr|ites exp|
|00003160| 6c 69 63 69 74 20 62 75 | 74 74 6f 6e 20 6c 69 6e |licit bu|tton lin|
|00003170| 65 73 20 6d 61 74 63 68 | 69 6e 67 20 53 54 52 49 |es match|ing STRI|
|00003180| 4e 47 20 74 6f 20 4f 55 | 54 2d 42 55 46 2e 0a 55 |NG to OU|T-BUF..U|
|00003190| 73 65 73 20 48 79 70 65 | 72 62 6f 6c 65 20 73 70 |ses Hype|rbole sp|
|000031a0| 61 63 65 20 69 6e 74 6f | 20 77 68 69 63 68 20 75 |ace into| which u|
|000031b0| 73 65 72 20 68 61 73 20 | 77 72 69 74 74 65 6e 20 |ser has |written |
|000031c0| 62 75 74 74 6f 6e 73 20 | 66 6f 72 20 74 68 65 20 |buttons |for the |
|000031d0| 73 65 61 72 63 68 2e 0a | 42 79 20 64 65 66 61 75 |search..|By defau|
|000031e0| 6c 74 2c 20 6f 6e 6c 79 | 20 6d 61 74 63 68 65 73 |lt, only| matches|
|000031f0| 20 66 6f 72 20 77 68 6f | 6c 65 20 62 75 74 74 6f | for who|le butto|
|00003200| 6e 20 6c 61 62 65 6c 73 | 20 61 72 65 20 66 6f 75 |n labels| are fou|
|00003210| 6e 64 2c 20 6f 70 74 69 | 6f 6e 61 6c 20 4d 41 54 |nd, opti|onal MAT|
|00003220| 43 48 2d 50 41 52 54 0a | 65 6e 61 62 6c 65 73 20 |CH-PART.|enables |
|00003230| 70 61 72 74 69 61 6c 20 | 6d 61 74 63 68 65 73 2e |partial |matches.|
|00003240| 22 5d 29 0a 28 66 73 65 | 74 20 27 65 62 75 74 3a |"]).(fse|t 'ebut:|
|00003250| 64 65 6c 69 6d 69 74 20 | 23 5b 28 73 74 61 72 74 |delimit |#[(start|
|00003260| 20 65 6e 64 20 69 6e 73 | 74 61 6e 63 65 2d 73 74 | end ins|tance-st|
|00003270| 72 29 20 22 08 62 88 c1 | c2 0b 21 21 ab 84 0b 47 |r) ".b..|..!!...G|
|00003280| 75 88 c4 20 3f ad bc 0d | 3b ac 82 c6 15 0b 63 88 |u.. ?...|;.....c.|
|00003290| 0e 07 0b 47 5c 5c 89 16 | 07 62 88 0d 0e 08 b1 02 |...G\\..|.b......|
|000032a0| 88 0e 07 0d 47 0e 08 47 | 5c 5c 5c 5c 16 07 c9 ca |....G..G|\\\\....|
|000032b0| 21 ab 88 ca 08 0e 07 0e | 0b 23 88 cc 08 0e 07 5c |!.......|.#.....\|
|000032c0| 22 88 0e 07 62 88 cd 87 | 22 20 5b 73 74 61 72 74 |"...b...|" [start|
|000032d0| 20 6c 6f 6f 6b 69 6e 67 | 2d 61 74 20 72 65 67 65 | looking|-at rege|
|000032e0| 78 70 2d 71 75 6f 74 65 | 20 65 62 75 74 3a 73 74 |xp-quote| ebut:st|
|000032f0| 61 72 74 20 65 62 75 74 | 3a 6c 61 62 65 6c 2d 70 |art ebut|:label-p|
|00003300| 20 69 6e 73 74 61 6e 63 | 65 2d 73 74 72 20 22 22 | instanc|e-str ""|
|00003310| 20 65 6e 64 20 65 62 75 | 74 3a 65 6e 64 20 66 62 | end ebu|t:end fb|
|00003320| 6f 75 6e 64 70 20 68 70 | 72 6f 70 65 72 74 79 3a |oundp hp|roperty:|
|00003330| 62 75 74 2d 61 64 64 20 | 68 70 72 6f 70 65 72 74 |but-add |hpropert|
|00003340| 79 3a 62 75 74 20 68 62 | 75 74 3a 63 6f 6d 6d 65 |y:but hb|ut:comme|
|00003350| 6e 74 20 74 5d 20 34 20 | 22 5c 0a 44 65 6c 69 6d |nt t] 4 |"\.Delim|
|00003360| 69 74 73 20 62 75 74 74 | 6f 6e 20 6c 61 62 65 6c |its butt|on label|
|00003370| 20 73 70 61 6e 6e 69 6e | 67 20 72 65 67 69 6f 6e | spannin|g region|
|00003380| 20 53 54 41 52 54 20 74 | 6f 20 45 4e 44 20 69 6e | START t|o END in|
|00003390| 20 63 75 72 72 65 6e 74 | 20 62 75 66 66 65 72 2e | current| buffer.|
|000033a0| 0a 49 66 20 62 75 74 74 | 6f 6e 20 69 73 20 61 6c |.If butt|on is al|
|000033b0| 72 65 61 64 79 20 64 65 | 6c 69 6d 69 74 65 64 20 |ready de|limited |
|000033c0| 6f 72 20 64 65 6c 69 6d | 69 74 20 66 61 69 6c 73 |or delim|it fails|
|000033d0| 2c 20 72 65 74 75 72 6e | 73 20 6e 69 6c 2c 20 65 |, return|s nil, e|
|000033e0| 6c 73 65 20 74 2e 0a 49 | 6e 73 65 72 74 73 20 49 |lse t..I|nserts I|
|000033f0| 4e 53 54 41 4e 43 45 2d | 53 54 52 20 61 66 74 65 |NSTANCE-|STR afte|
|00003400| 72 20 45 4e 44 2c 20 62 | 65 66 6f 72 65 20 65 6e |r END, b|efore en|
|00003410| 64 69 6e 67 20 64 65 6c | 69 6d 69 74 65 72 2e 22 |ding del|imiter."|
|00003420| 5d 29 0a 28 66 73 65 74 | 20 27 65 62 75 74 3a 6d |]).(fset| 'ebut:m|
|00003430| 61 74 63 68 2d 72 65 67 | 65 78 70 20 23 5b 28 6d |atch-reg|exp #[(m|
|00003440| 61 74 63 68 2d 6b 65 79 | 73 20 6d 61 74 63 68 2d |atch-key|s match-|
|00003450| 70 61 72 74 29 20 22 08 | ab 89 c1 5c 6e c3 c4 4f |part) ".|...\n..O|
|00003460| c5 51 aa 81 c6 10 c7 0e | 08 21 08 c9 ca cb 0e 0c |.Q......|.!......|
|00003470| cd 23 ce 08 c7 5c 6e 21 | b0 07 87 22 20 5b 6d 61 |.#...\n!|..." [ma|
|00003480| 74 63 68 2d 70 61 72 74 | 20 22 5b 5e 22 20 65 62 |tch-part| "[^" eb|
|00003490| 75 74 3a 65 6e 64 20 2d | 31 20 6e 69 6c 20 22 5d |ut:end -|1 nil "]|
|000034a0| 2a 22 20 22 5b 20 09 5c | 6e 5d 2a 22 20 72 65 67 |*" "[ .\|n]*" reg|
|000034b0| 65 78 70 2d 71 75 6f 74 | 65 20 65 62 75 74 3a 73 |exp-quot|e ebut:s|
|000034c0| 74 61 72 74 20 22 5c 5c | 28 22 20 6d 61 70 63 6f |tart "\\|(" mapco|
|000034d0| 6e 63 61 74 20 23 5b 28 | 6b 65 79 29 20 22 c0 09 |ncat #[(|key) "..|
|000034e0| c2 5c 22 87 22 20 5b 65 | 62 75 74 3a 6c 61 62 65 |.\"." [e|but:labe|
|000034f0| 6c 2d 72 65 67 65 78 70 | 20 6b 65 79 20 6e 6f 2d |l-regexp| key no-|
|00003500| 64 65 6c 69 6d 5d 20 33 | 5d 20 6d 61 74 63 68 2d |delim] 3|] match-|
|00003510| 6b 65 79 73 20 22 5c 5c | 7c 22 20 22 5c 5c 29 22 |keys "\\||" "\\)"|
|00003520| 5d 20 38 20 22 5c 0a 52 | 65 74 75 72 6e 73 20 72 |] 8 "\.R|eturns r|
|00003530| 65 67 65 78 70 20 74 6f | 20 6d 61 74 63 68 20 74 |egexp to| match t|
|00003540| 6f 20 61 6c 6c 20 65 78 | 70 6c 69 63 69 74 20 62 |o all ex|plicit b|
|00003550| 75 74 74 6f 6e 20 6b 65 | 79 73 20 66 72 6f 6d 20 |utton ke|ys from |
|00003560| 4d 41 54 43 48 2d 4b 45 | 59 53 2e 22 5d 29 0a 28 |MATCH-KE|YS."]).(|
|00003570| 64 65 66 63 6f 6e 73 74 | 20 65 62 75 74 3a 73 74 |defconst| ebut:st|
|00003580| 61 72 74 20 22 3c 28 22 | 20 22 5c 0a 53 74 72 69 |art "<("| "\.Stri|
|00003590| 6e 67 20 6d 61 74 63 68 | 69 6e 67 20 74 68 65 20 |ng match|ing the |
|000035a0| 73 74 61 72 74 20 6f 66 | 20 61 20 68 79 70 65 72 |start of| a hyper|
|000035b0| 2d 62 75 74 74 6f 6e 2e | 22 29 0a 28 64 65 66 63 |-button.|").(defc|
|000035c0| 6f 6e 73 74 20 65 62 75 | 74 3a 65 6e 64 20 22 29 |onst ebu|t:end ")|
|000035d0| 3e 22 20 22 5c 0a 53 74 | 72 69 6e 67 20 6d 61 74 |>" "\.St|ring mat|
|000035e0| 63 68 69 6e 67 20 74 68 | 65 20 65 6e 64 20 6f 66 |ching th|e end of|
|000035f0| 20 61 20 68 79 70 65 72 | 2d 62 75 74 74 6f 6e 2e | a hyper|-button.|
|00003600| 22 29 0a 28 64 65 66 63 | 6f 6e 73 74 20 65 62 75 |").(defc|onst ebu|
|00003610| 74 3a 69 6e 73 74 61 6e | 63 65 2d 73 65 70 20 22 |t:instan|ce-sep "|
|00003620| 3a 22 20 22 5c 0a 53 74 | 72 69 6e 67 20 6f 66 20 |:" "\.St|ring of |
|00003630| 6f 6e 65 20 63 68 61 72 | 61 63 74 65 72 2c 20 73 |one char|acter, s|
|00003640| 65 70 61 72 61 74 65 73 | 20 61 6e 20 65 62 75 74 |eparates| an ebut|
|00003650| 20 6c 61 62 65 6c 20 66 | 72 6f 6d 20 69 74 73 20 | label f|rom its |
|00003660| 69 6e 73 74 61 6e 63 65 | 20 6e 75 6d 2e 22 29 0a |instance| num.").|
|00003670| 28 64 65 66 76 61 72 20 | 67 62 75 74 3a 66 69 6c |(defvar |gbut:fil|
|00003680| 65 20 28 65 78 70 61 6e | 64 2d 66 69 6c 65 2d 6e |e (expan|d-file-n|
|00003690| 61 6d 65 20 68 62 6d 61 | 70 3a 66 69 6c 65 6e 61 |ame hbma|p:filena|
|000036a0| 6d 65 20 68 62 6d 61 70 | 3a 64 69 72 2d 75 73 65 |me hbmap|:dir-use|
|000036b0| 72 29 20 22 5c 0a 46 69 | 6c 65 20 74 68 61 74 20 |r) "\.Fi|le that |
|000036c0| 73 74 6f 72 65 73 20 48 | 79 70 65 72 62 6f 6c 65 |stores H|yperbole|
|000036d0| 20 62 75 74 74 6f 6e 73 | 20 61 63 63 65 73 73 69 | buttons| accessi|
|000036e0| 62 6c 65 20 62 79 20 6e | 61 6d 65 2c 20 67 6c 6f |ble by n|ame, glo|
|000036f0| 62 61 6c 20 62 75 74 74 | 6f 6e 73 2e 22 29 0a 28 |bal butt|ons.").(|
|00003700| 66 73 65 74 20 27 67 62 | 75 74 3a 61 63 74 20 23 |fset 'gb|ut:act #|
|00003710| 5b 28 6c 61 62 65 6c 29 | 20 22 c0 09 21 1a c3 5c |[(label)| "..!..\|
|00003720| 6e c4 0d 23 89 1e 06 ab | 86 c7 0e 06 21 aa 84 c8 |n..#....|....!...|
|00003730| c9 09 5c 22 2a 87 22 20 | 5b 68 62 75 74 3a 6c 61 |..\"*." |[hbut:la|
|00003740| 62 65 6c 2d 74 6f 2d 6b | 65 79 20 6c 61 62 65 6c |bel-to-k|ey label|
|00003750| 20 6c 62 6c 2d 6b 65 79 | 20 65 62 75 74 3a 67 65 | lbl-key| ebut:ge|
|00003760| 74 20 6e 69 6c 20 67 62 | 75 74 3a 66 69 6c 65 20 |t nil gb|ut:file |
|00003770| 62 75 74 20 68 62 75 74 | 3a 61 63 74 20 65 72 72 |but hbut|:act err|
|00003780| 6f 72 20 22 28 67 62 75 | 74 3a 61 63 74 29 3a 20 |or "(gbu|t:act): |
|00003790| 4e 6f 20 67 6c 6f 62 61 | 6c 20 62 75 74 74 6f 6e |No globa|l button|
|000037a0| 20 6c 61 62 65 6c 65 64 | 3a 20 25 73 22 5d 20 35 | labeled|: %s"] 5|
|000037b0| 20 22 5c 0a 41 63 74 69 | 76 61 74 65 73 20 48 79 | "\.Acti|vates Hy|
|000037c0| 70 65 72 62 6f 6c 65 20 | 67 6c 6f 62 61 6c 20 62 |perbole |global b|
|000037d0| 75 74 74 6f 6e 20 77 69 | 74 68 20 4c 41 42 45 4c |utton wi|th LABEL|
|000037e0| 2e 22 20 28 62 79 74 65 | 2d 63 6f 64 65 20 22 c0 |." (byte|-code ".|
|000037f0| c1 c2 c3 c4 20 5c 22 c5 | c6 c5 c7 26 06 43 87 22 |.... \".|...&.C."|
|00003800| 20 5b 68 61 72 67 73 3a | 72 65 61 64 2d 6d 61 74 | [hargs:|read-mat|
|00003810| 63 68 20 22 41 63 74 69 | 76 61 74 65 20 67 6c 6f |ch "Acti|vate glo|
|00003820| 62 61 6c 20 62 75 74 74 | 6f 6e 20 6c 61 62 65 6c |bal butt|on label|
|00003830| 65 64 3a 20 22 20 6d 61 | 70 63 61 72 20 6c 69 73 |ed: " ma|pcar lis|
|00003840| 74 20 67 62 75 74 3a 6c | 62 6c 2d 6c 69 73 74 20 |t gbut:l|bl-list |
|00003850| 6e 69 6c 20 74 20 65 62 | 75 74 5d 20 37 29 5d 29 |nil t eb|ut] 7)])|
|00003860| 0a 28 66 73 65 74 20 27 | 67 62 75 74 3a 68 65 6c |.(fset '|gbut:hel|
|00003870| 70 20 23 5b 28 6c 61 62 | 65 6c 29 20 22 c0 09 21 |p #[(lab|el) "..!|
|00003880| 1a c3 5c 6e c4 0d 23 89 | 1e 06 ab 86 c7 0e 06 21 |..\n..#.|.......!|
|00003890| aa 84 c8 c9 09 5c 22 2a | 87 22 20 5b 68 62 75 74 |.....\"*|." [hbut|
|000038a0| 3a 6c 61 62 65 6c 2d 74 | 6f 2d 6b 65 79 20 6c 61 |:label-t|o-key la|
|000038b0| 62 65 6c 20 6c 62 6c 2d | 6b 65 79 20 65 62 75 74 |bel lbl-|key ebut|
|000038c0| 3a 67 65 74 20 6e 69 6c | 20 67 62 75 74 3a 66 69 |:get nil| gbut:fi|
|000038d0| 6c 65 20 62 75 74 20 68 | 62 75 74 3a 72 65 70 6f |le but h|but:repo|
|000038e0| 72 74 20 65 72 72 6f 72 | 20 22 28 67 62 75 74 3a |rt error| "(gbut:|
|000038f0| 68 65 6c 70 29 3a 20 4e | 6f 20 67 6c 6f 62 61 6c |help): N|o global|
|00003900| 20 62 75 74 74 6f 6e 20 | 6c 61 62 65 6c 65 64 3a | button |labeled:|
|00003910| 20 25 73 22 5d 20 35 20 | 22 5c 0a 44 69 73 70 6c | %s"] 5 |"\.Displ|
|00003920| 61 79 73 20 68 65 6c 70 | 20 66 6f 72 20 48 79 70 |ays help| for Hyp|
|00003930| 65 72 62 6f 6c 65 20 67 | 6c 6f 62 61 6c 20 62 75 |erbole g|lobal bu|
|00003940| 74 74 6f 6e 20 77 69 74 | 68 20 4c 41 42 45 4c 2e |tton wit|h LABEL.|
|00003950| 22 20 28 62 79 74 65 2d | 63 6f 64 65 20 22 c0 c1 |" (byte-|code "..|
|00003960| c2 c3 c4 20 5c 22 c5 c6 | c5 c7 26 06 43 87 22 20 |... \"..|..&.C." |
|00003970| 5b 68 61 72 67 73 3a 72 | 65 61 64 2d 6d 61 74 63 |[hargs:r|ead-matc|
|00003980| 68 20 22 52 65 70 6f 72 | 74 20 6f 6e 20 67 6c 6f |h "Repor|t on glo|
|00003990| 62 61 6c 20 62 75 74 74 | 6f 6e 20 6c 61 62 65 6c |bal butt|on label|
|000039a0| 65 64 3a 20 22 20 6d 61 | 70 63 61 72 20 6c 69 73 |ed: " ma|pcar lis|
|000039b0| 74 20 67 62 75 74 3a 6c | 62 6c 2d 6c 69 73 74 20 |t gbut:l|bl-list |
|000039c0| 6e 69 6c 20 74 20 65 62 | 75 74 5d 20 37 29 5d 29 |nil t eb|ut] 7)])|
|000039d0| 0a 28 66 73 65 74 20 27 | 67 62 75 74 3a 6b 65 79 |.(fset '|gbut:key|
|000039e0| 2d 6c 69 73 74 20 23 5b | 6e 69 6c 20 22 8a c0 09 |-list #[|nil "...|
|000039f0| 21 ad 9b c2 1b 8c 60 c4 | c5 c2 c6 23 ab 83 60 aa |!.....`.|...#..`.|
|00003a00| 81 64 7d 88 65 62 88 c2 | c7 c8 8f 88 0b 2a 29 87 |.d}.eb..|.....*).|
|00003a10| 22 20 5b 68 62 64 61 74 | 61 3a 74 6f 2d 65 6e 74 |" [hbdat|a:to-ent|
|00003a20| 72 79 2d 62 75 66 20 67 | 62 75 74 3a 66 69 6c 65 |ry-buf g|but:file|
|00003a30| 20 6e 69 6c 20 67 62 75 | 74 73 20 73 65 61 72 63 | nil gbu|ts searc|
|00003a40| 68 2d 66 6f 72 77 61 72 | 64 20 22 0c 22 20 74 20 |h-forwar|d "." t |
|00003a50| 28 62 79 74 65 2d 63 6f | 64 65 20 22 c0 70 21 40 |(byte-co|de ".p!@|
|00003a60| 09 42 89 11 ac 76 c0 87 | 22 20 5b 72 65 61 64 20 |.B...v..|" [read |
|00003a70| 67 62 75 74 73 5d 20 32 | 29 20 28 28 65 72 72 6f |gbuts] 2|) ((erro|
|00003a80| 72 29 29 5d 20 35 20 22 | 5c 0a 52 65 74 75 72 6e |r))] 5 "|\.Return|
|00003a90| 73 20 6c 69 73 74 20 6f | 66 20 67 6c 6f 62 61 6c |s list o|f global|
|00003aa0| 20 62 75 74 74 6f 6e 20 | 6c 61 62 65 6c 20 6b 65 | button |label ke|
|00003ab0| 79 73 2e 22 5d 29 0a 28 | 66 73 65 74 20 27 67 62 |ys."]).(|fset 'gb|
|00003ac0| 75 74 3a 6c 62 6c 2d 6c | 69 73 74 20 23 5b 6e 69 |ut:lbl-l|ist #[ni|
|00003ad0| 6c 20 22 c0 c1 c2 20 5c | 22 87 22 20 5b 6d 61 70 |l "... \|"." [map|
|00003ae0| 63 61 72 20 68 62 75 74 | 3a 6b 65 79 2d 74 6f 2d |car hbut|:key-to-|
|00003af0| 6c 61 62 65 6c 20 67 62 | 75 74 3a 6b 65 79 2d 6c |label gb|ut:key-l|
|00003b00| 69 73 74 5d 20 33 20 22 | 5c 0a 52 65 74 75 72 6e |ist] 3 "|\.Return|
|00003b10| 73 20 6c 69 73 74 20 6f | 66 20 67 6c 6f 62 61 6c |s list o|f global|
|00003b20| 20 62 75 74 74 6f 6e 20 | 6c 61 62 65 6c 73 2e 22 | button |labels."|
|00003b30| 5d 29 0a 28 66 73 65 74 | 20 27 68 61 74 74 72 3a |]).(fset| 'hattr:|
|00003b40| 61 74 74 72 69 62 75 74 | 65 73 20 23 5b 28 6f 62 |attribut|es #[(ob|
|00003b50| 6a 2d 73 79 6d 62 6f 6c | 29 20 22 08 39 ad 8e c1 |j-symbol|) ".9...|
|00003b60| 08 21 1a c3 1c c5 c6 c7 | c8 5c 6e 5c 22 5c 22 2a |.!......|.\n\"\"*|
|00003b70| 87 22 20 5b 6f 62 6a 2d | 73 79 6d 62 6f 6c 20 73 |." [obj-|symbol s|
|00003b80| 79 6d 62 6f 6c 2d 70 6c | 69 73 74 20 61 74 74 72 |ymbol-pl|ist attr|
|00003b90| 2d 76 61 6c 2d 6c 69 73 | 74 20 2d 31 20 69 20 64 |-val-lis|t -1 i d|
|00003ba0| 65 6c 71 20 6e 69 6c 20 | 6d 61 70 63 61 72 20 23 |elq nil |mapcar #|
|00003bb0| 5b 28 65 6c 74 29 20 22 | 08 54 89 10 c1 a6 c2 55 |[(elt) "|.T.....U|
|00003bc0| ad 81 0b 87 22 20 5b 69 | 20 32 20 30 20 65 6c 74 |...." [i| 2 0 elt|
|00003bd0| 5d 20 33 5d 5d 20 35 20 | 22 5c 0a 52 65 74 75 72 |] 3]] 5 |"\.Retur|
|00003be0| 6e 73 20 61 20 6c 69 73 | 74 20 6f 66 20 4f 42 4a |ns a lis|t of OBJ|
|00003bf0| 2d 53 59 4d 42 4f 4c 27 | 73 20 61 74 74 72 69 62 |-SYMBOL'|s attrib|
|00003c00| 75 74 65 73 20 61 73 20 | 73 79 6d 62 6f 6c 73 2e |utes as |symbols.|
|00003c10| 22 5d 29 0a 28 66 73 65 | 74 20 27 68 61 74 74 72 |"]).(fse|t 'hattr|
|00003c20| 3a 63 6c 65 61 72 20 23 | 5b 28 68 62 75 74 29 20 |:clear #|[(hbut) |
|00003c30| 22 c0 19 5c 6e 39 ac 85 | c3 c4 5c 6e 5c 22 88 c5 |"..\n9..|..\n\"..|
|00003c40| c6 5c 6e 21 3e 89 11 ab | 8b 09 41 c0 a1 88 c7 5c |.\n!>...|..A....\|
|00003c50| 6e 09 5c 22 aa 84 c7 5c | 6e c0 5c 22 29 87 22 20 |n.\"...\|n.\")." |
|00003c60| 5b 6e 69 6c 20 73 75 62 | 6c 69 73 74 20 68 62 75 |[nil sub|list hbu|
|00003c70| 74 20 65 72 72 6f 72 20 | 22 28 68 61 74 74 72 3a |t error |"(hattr:|
|00003c80| 63 6c 65 61 72 29 3a 20 | 41 72 67 75 6d 65 6e 74 |clear): |Argument|
|00003c90| 20 6e 6f 74 20 61 20 48 | 79 70 65 72 62 6f 6c 65 | not a H|yperbole|
|00003ca0| 20 62 75 74 74 6f 6e 3a | 20 25 73 22 20 76 61 72 | button:| %s" var|
|00003cb0| 69 61 62 6c 65 2d 64 6f | 63 75 6d 65 6e 74 61 74 |iable-do|cumentat|
|00003cc0| 69 6f 6e 20 73 79 6d 62 | 6f 6c 2d 70 6c 69 73 74 |ion symb|ol-plist|
|00003cd0| 20 73 65 74 70 6c 69 73 | 74 5d 20 33 20 22 5c 0a | setplis|t] 3 "\.|
|00003ce0| 52 65 6d 6f 76 65 73 20 | 61 6c 6c 20 6f 66 20 48 |Removes |all of H|
|00003cf0| 42 55 54 27 73 20 61 74 | 74 72 69 62 75 74 65 73 |BUT's at|tributes|
|00003d00| 20 65 78 63 65 70 74 20 | 60 76 61 72 69 61 62 6c | except |`variabl|
|00003d10| 65 2d 64 6f 63 75 6d 65 | 6e 74 61 74 69 6f 6e 27 |e-docume|ntation'|
|00003d20| 2e 22 5d 29 0a 28 66 73 | 65 74 20 27 68 61 74 74 |."]).(fs|et 'hatt|
|00003d30| 72 3a 63 6f 70 79 20 23 | 5b 28 66 72 6f 6d 2d 68 |r:copy #|[(from-h|
|00003d40| 62 75 74 20 74 6f 2d 68 | 62 75 74 29 20 22 c0 c1 |but to-h|but) "..|
|00003d50| 5c 6e 0b 44 5c 22 88 c4 | 8e 29 0b 87 22 20 5b 6d |\n.D\"..|.).." [m|
|00003d60| 61 70 63 61 72 20 23 5b | 28 68 62 75 74 29 20 22 |apcar #[|(hbut) "|
|00003d70| 08 ab 84 08 39 ae 84 c1 | c2 08 5c 22 87 22 20 5b |....9...|..\"." [|
|00003d80| 68 62 75 74 20 65 72 72 | 6f 72 20 22 28 68 61 74 |hbut err|or "(hat|
|00003d90| 74 72 3a 63 6c 65 61 72 | 29 3a 20 41 72 67 75 6d |tr:clear|): Argum|
|00003da0| 65 6e 74 20 6e 6f 74 20 | 61 20 48 79 70 65 72 62 |ent not |a Hyperb|
|00003db0| 6f 6c 65 20 62 75 74 74 | 6f 6e 3a 20 25 73 22 5d |ole butt|on: %s"]|
|00003dc0| 20 33 5d 20 66 72 6f 6d | 2d 68 62 75 74 20 74 6f | 3] from|-hbut to|
|00003dd0| 2d 68 62 75 74 20 28 28 | 62 79 74 65 2d 63 6f 64 |-hbut ((|byte-cod|
|00003de0| 65 20 22 c0 09 21 88 c2 | 09 c3 c4 0d 21 21 5c 22 |e "..!..|....!!\"|
|00003df0| 87 22 20 5b 68 61 74 74 | 72 3a 63 6c 65 61 72 20 |." [hatt|r:clear |
|00003e00| 74 6f 2d 68 62 75 74 20 | 73 65 74 70 6c 69 73 74 |to-hbut |setplist|
|00003e10| 20 63 6f 70 79 2d 73 65 | 71 75 65 6e 63 65 20 73 | copy-se|quence s|
|00003e20| 79 6d 62 6f 6c 2d 70 6c | 69 73 74 20 66 72 6f 6d |ymbol-pl|ist from|
|00003e30| 2d 68 62 75 74 5d 20 35 | 29 29 5d 20 34 20 22 5c |-hbut] 5|))] 4 "\|
|00003e40| 0a 43 6f 70 69 65 73 20 | 61 74 74 72 69 62 75 74 |.Copies |attribut|
|00003e50| 65 73 20 46 52 4f 4d 2d | 48 42 55 54 20 54 4f 2d |es FROM-|HBUT TO-|
|00003e60| 48 42 55 54 2c 20 65 6c | 69 6d 69 6e 61 74 69 6e |HBUT, el|iminatin|
|00003e70| 67 20 61 74 74 72 69 62 | 75 74 65 73 20 54 4f 2d |g attrib|utes TO-|
|00003e80| 48 42 55 54 20 68 61 64 | 2e 0a 52 65 74 75 72 6e |HBUT had|..Return|
|00003e90| 73 20 54 4f 2d 48 42 55 | 54 2e 22 5d 29 0a 28 66 |s TO-HBU|T."]).(f|
|00003ea0| 73 65 74 20 27 68 61 74 | 74 72 3a 67 65 74 20 23 |set 'hat|tr:get #|
|00003eb0| 5b 28 6f 62 6a 2d 73 79 | 6d 62 6f 6c 20 61 74 74 |[(obj-sy|mbol att|
|00003ec0| 72 2d 73 79 6d 62 6f 6c | 29 20 22 08 09 4e 87 22 |r-symbol|) "..N."|
|00003ed0| 20 5b 6f 62 6a 2d 73 79 | 6d 62 6f 6c 20 61 74 74 | [obj-sy|mbol att|
|00003ee0| 72 2d 73 79 6d 62 6f 6c | 5d 20 32 20 22 5c 0a 52 |r-symbol|] 2 "\.R|
|00003ef0| 65 74 75 72 6e 73 20 76 | 61 6c 75 65 20 6f 66 20 |eturns v|alue of |
|00003f00| 4f 42 4a 2d 53 59 4d 42 | 4f 4c 27 73 20 61 74 74 |OBJ-SYMB|OL's att|
|00003f10| 72 69 62 75 74 65 20 41 | 54 54 52 2d 53 59 4d 42 |ribute A|TTR-SYMB|
|00003f20| 4f 4c 2e 22 5d 29 0a 28 | 66 73 65 74 20 27 68 61 |OL."]).(|fset 'ha|
|00003f30| 74 74 72 3a 6c 69 73 74 | 20 23 5b 28 6f 62 6a 2d |ttr:list| #[(obj-|
|00003f40| 73 79 6d 62 6f 6c 29 20 | 22 08 39 ab 84 c1 08 21 |symbol) |".9....!|
|00003f50| 87 c2 c3 08 5c 22 87 22 | 20 5b 6f 62 6a 2d 73 79 |....\"."| [obj-sy|
|00003f60| 6d 62 6f 6c 20 73 79 6d | 62 6f 6c 2d 70 6c 69 73 |mbol sym|bol-plis|
|00003f70| 74 20 65 72 72 6f 72 20 | 22 28 68 61 74 74 72 3a |t error |"(hattr:|
|00003f80| 6c 69 73 74 29 3a 20 41 | 72 67 75 6d 65 6e 74 20 |list): A|rgument |
|00003f90| 6e 6f 74 20 61 20 73 79 | 6d 62 6f 6c 3a 20 25 73 |not a sy|mbol: %s|
|00003fa0| 22 5d 20 33 20 22 5c 0a | 52 65 74 75 72 6e 73 20 |"] 3 "\.|Returns |
|00003fb0| 61 20 70 72 6f 70 65 72 | 74 79 20 6c 69 73 74 20 |a proper|ty list |
|00003fc0| 6f 66 20 4f 42 4a 2d 53 | 59 4d 42 4f 4c 27 73 20 |of OBJ-S|YMBOL's |
|00003fd0| 61 74 74 72 69 62 75 74 | 65 73 2e 0a 45 61 63 68 |attribut|es..Each|
|00003fe0| 20 70 61 69 72 20 6f 66 | 20 65 6c 65 6d 65 6e 74 | pair of| element|
|00003ff0| 73 20 69 73 3a 20 3c 61 | 74 74 72 69 62 2d 6e 61 |s is: <a|ttrib-na|
|00004000| 6d 65 3e 20 3c 61 74 74 | 72 69 62 2d 76 61 6c 75 |me> <att|rib-valu|
|00004010| 65 3e 2e 22 5d 29 0a 28 | 66 73 65 74 20 27 68 61 |e>."]).(|fset 'ha|
|00004020| 74 74 72 3a 6d 65 6d 71 | 20 23 5b 28 61 74 74 72 |ttr:memq| #[(attr|
|00004030| 2d 73 79 6d 62 6f 6c 20 | 6f 62 6a 2d 73 79 6d 62 |-symbol |obj-symb|
|00004040| 6f 6c 29 20 22 08 39 ad | 9c 09 39 ad 98 c2 08 21 |ol) ".9.|..9....!|
|00004050| 1b c4 1d c6 c7 c8 c9 0b | 5c 22 5c 22 29 1e 5c 6e |........|\"\").\n|
|00004060| 09 0e 5c 6e 3e ad 81 cb | 2a 87 22 20 5b 6f 62 6a |..\n>...|*." [obj|
|00004070| 2d 73 79 6d 62 6f 6c 20 | 61 74 74 72 2d 73 79 6d |-symbol |attr-sym|
|00004080| 62 6f 6c 20 73 79 6d 62 | 6f 6c 2d 70 6c 69 73 74 |bol symb|ol-plist|
|00004090| 20 61 74 74 72 2d 76 61 | 6c 2d 6c 69 73 74 20 2d | attr-va|l-list -|
|000040a0| 31 20 69 20 64 65 6c 71 | 20 6e 69 6c 20 6d 61 70 |1 i delq| nil map|
|000040b0| 63 61 72 20 23 5b 28 65 | 6c 74 29 20 22 08 54 89 |car #[(e|lt) ".T.|
|000040c0| 10 c1 a6 c2 55 ad 81 0b | 87 22 20 5b 69 20 32 20 |....U...|." [i 2 |
|000040d0| 30 20 65 6c 74 5d 20 33 | 5d 20 61 74 74 72 2d 6c |0 elt] 3|] attr-l|
|000040e0| 69 73 74 20 74 5d 20 35 | 20 22 5c 0a 52 65 74 75 |ist t] 5| "\.Retu|
|000040f0| 72 6e 73 20 74 20 69 66 | 20 41 54 54 52 2d 53 59 |rns t if| ATTR-SY|
|00004100| 4d 42 4f 4c 20 69 73 20 | 69 6e 20 4f 42 4a 2d 53 |MBOL is |in OBJ-S|
|00004110| 59 4d 42 4f 4c 27 73 20 | 61 74 74 72 69 62 75 74 |YMBOL's |attribut|
|00004120| 65 20 6c 69 73 74 2c 20 | 65 6c 73 65 20 6e 69 6c |e list, |else nil|
|00004130| 2e 22 5d 29 0a 28 66 73 | 65 74 20 27 68 61 74 74 |."]).(fs|et 'hatt|
|00004140| 72 3a 72 65 70 6f 72 74 | 20 23 5b 28 61 74 74 72 |r:report| #[(attr|
|00004150| 69 62 2d 6c 69 73 74 29 | 20 22 c0 89 89 89 19 1a |ib-list)| "......|
|00004160| 1b 1c 0d 3f ae 8b 0d 3c | 3f ae 86 0d 47 c6 a6 c7 |...?...<|?...G...|
|00004170| 55 3f ad fc 0d 40 89 13 | ab f5 0d 41 89 15 40 12 |U?...@..|...A..@.|
|00004180| 0d 41 15 5c 6e ab 6e c8 | 14 c9 0b 21 13 ca 0b 47 |.A.\n.n.|...!...G|
|00004190| 5a c7 5d 11 cb cc 21 88 | cb 0b 21 88 cb cd 21 88 |Z.]...!.|..!...!.|
|000041a0| cb ce 09 cf 5c 22 21 88 | c0 1e 10 d1 d2 d3 0b 5c |....\"!.|.......\|
|000041b0| 22 ab 96 d4 5c 6e 89 d5 | 48 d6 59 ad 88 5c 6e d5 |"...\n..|H.Y..\n.|
|000041c0| 48 d7 58 ad 81 d8 0e 19 | 23 aa a1 5c 6e 3b ab 83 |H.X.....|#..\n;..|
|000041d0| 5c 6e aa 83 da 5c 6e 21 | 89 16 10 ab 91 d2 db 0e |\n...\n!|........|
|000041e0| 10 5c 22 ab 8a dc 0e 10 | d5 95 c0 4f 21 aa 81 5c |.\".....|...O!..\|
|000041f0| 6e 21 88 29 dd 20 88 aa | 05 0c 2c 87 22 20 5b 6e |n!.). ..|..,." [n|
|00004200| 69 6c 20 6c 65 6e 20 76 | 61 6c 20 61 74 74 72 20 |il len v|al attr |
|00004210| 68 61 73 2d 61 74 74 72 | 20 61 74 74 72 69 62 2d |has-attr| attrib-|
|00004220| 6c 69 73 74 20 32 20 31 | 20 74 20 73 79 6d 62 6f |list 2 1| t symbo|
|00004230| 6c 2d 6e 61 6d 65 20 31 | 36 20 70 72 69 6e 63 20 |l-name 1|6 princ |
|00004240| 22 20 20 20 22 20 22 3a | 22 20 6d 61 6b 65 2d 73 |" " ":|" make-s|
|00004250| 74 72 69 6e 67 20 33 32 | 20 73 74 72 20 70 72 69 |tring 32| str pri|
|00004260| 6e 31 20 73 74 72 69 6e | 67 2d 6d 61 74 63 68 20 |n1 strin|g-match |
|00004270| 22 74 69 6d 65 22 20 68 | 74 7a 3a 64 61 74 65 2d |"time" h|tz:date-|
|00004280| 75 6e 69 78 20 30 20 34 | 38 20 35 37 20 22 47 4d |unix 0 4|8 57 "GM|
|00004290| 54 22 20 68 74 7a 3a 6c | 6f 63 61 6c 20 70 72 69 |T" htz:l|ocal pri|
|000042a0| 6e 31 2d 74 6f 2d 73 74 | 72 69 6e 67 20 22 5c 5c |n1-to-st|ring "\\|
|000042b0| 60 61 63 74 79 70 65 73 | 3a 3a 22 20 69 6e 74 65 |`actypes|::" inte|
|000042c0| 72 6e 20 74 65 72 70 72 | 69 5d 20 35 20 22 5c 0a |rn terpr|i] 5 "\.|
|000042d0| 50 72 65 74 74 79 20 70 | 72 69 6e 74 73 20 74 6f |Pretty p|rints to|
|000042e0| 20 73 74 61 6e 64 61 72 | 64 2d 6f 75 74 70 75 74 | standar|d-output|
|000042f0| 20 61 74 74 72 69 62 75 | 74 65 2d 76 61 6c 75 65 | attribu|te-value|
|00004300| 20 70 61 69 72 73 20 66 | 72 6f 6d 20 41 54 54 52 | pairs f|rom ATTR|
|00004310| 49 42 2d 4c 49 53 54 2e | 0a 49 67 6e 6f 72 65 73 |IB-LIST.|.Ignores|
|00004320| 20 6e 69 6c 20 76 61 6c | 75 65 64 20 61 74 74 72 | nil val|ued attr|
|00004330| 69 62 75 74 65 73 2e 20 | 20 52 65 74 75 72 6e 73 |ibutes. | Returns|
|00004340| 20 74 20 75 6e 6c 65 73 | 73 20 6e 6f 20 61 74 74 | t unles|s no att|
|00004350| 72 69 62 75 74 65 73 20 | 61 72 65 20 70 72 69 6e |ributes |are prin|
|00004360| 74 65 64 2e 22 5d 29 0a | 28 66 73 65 74 20 27 68 |ted."]).|(fset 'h|
|00004370| 61 74 74 72 3a 73 61 76 | 65 20 23 5b 6e 69 6c 20 |attr:sav|e #[nil |
|00004380| 22 c0 09 5c 6e 5c 22 1b | 5c 6e 3b ad 83 c4 0b 21 |"..\n\".|\n;....!|
|00004390| 1d 0e 06 ab a2 0d ab 9f | 0d 70 3d ac 9a c7 1e 06 |........|.p=.....|
|000043a0| c8 0d 21 ab 91 8a 0d 71 | 88 c9 20 88 c8 0d 21 ac |..!....q|.. ...!.|
|000043b0| 84 ca 0d 21 88 29 29 2a | c7 87 22 20 5b 65 78 70 |...!.))*|.." [exp|
|000043c0| 61 6e 64 2d 66 69 6c 65 | 2d 6e 61 6d 65 20 68 61 |and-file|-name ha|
|000043d0| 74 74 72 3a 66 69 6c 65 | 6e 61 6d 65 20 64 65 66 |ttr:file|name def|
|000043e0| 61 75 6c 74 2d 64 69 72 | 65 63 74 6f 72 79 20 62 |ault-dir|ectory b|
|000043f0| 64 2d 66 69 6c 65 20 67 | 65 74 2d 66 69 6c 65 2d |d-file g|et-file-|
|00004400| 62 75 66 66 65 72 20 62 | 75 66 20 65 62 75 74 3a |buffer b|uf ebut:|
|00004410| 68 61 74 74 72 2d 73 61 | 76 65 20 6e 69 6c 20 62 |hattr-sa|ve nil b|
|00004420| 75 66 66 65 72 2d 6d 6f | 64 69 66 69 65 64 2d 70 |uffer-mo|dified-p|
|00004430| 20 73 61 76 65 2d 62 75 | 66 66 65 72 20 6b 69 6c | save-bu|ffer kil|
|00004440| 6c 2d 62 75 66 66 65 72 | 5d 20 33 20 22 5c 0a 53 |l-buffer|] 3 "\.S|
|00004450| 61 76 65 73 20 62 75 74 | 74 6f 6e 20 61 74 74 72 |aves but|ton attr|
|00004460| 69 62 75 74 65 20 66 69 | 6c 65 20 66 6f 72 20 63 |ibute fi|le for c|
|00004470| 75 72 72 65 6e 74 20 64 | 69 72 65 63 74 6f 72 79 |urrent d|irectory|
|00004480| 2c 20 69 66 20 6d 6f 64 | 69 66 69 65 64 2e 0a 53 |, if mod|ified..S|
|00004490| 75 69 74 61 62 6c 65 20 | 66 6f 72 20 75 73 65 20 |uitable |for use |
|000044a0| 61 73 20 70 61 72 74 20 | 6f 66 20 27 77 72 69 74 |as part |of 'writ|
|000044b0| 65 2d 66 69 6c 65 2d 68 | 6f 6f 6b 73 27 2e 22 5d |e-file-h|ooks'."]|
|000044c0| 29 0a 28 66 73 65 74 20 | 27 68 61 74 74 72 3a 73 |).(fset |'hattr:s|
|000044d0| 65 74 20 23 5b 28 6f 62 | 6a 2d 73 79 6d 62 6f 6c |et #[(ob|j-symbol|
|000044e0| 20 61 74 74 72 2d 73 79 | 6d 62 6f 6c 20 61 74 74 | attr-sy|mbol att|
|000044f0| 72 2d 76 61 6c 75 65 29 | 20 22 c0 09 5c 6e 0b 23 |r-value)| "..\n.#|
|00004500| 87 22 20 5b 70 75 74 20 | 6f 62 6a 2d 73 79 6d 62 |." [put |obj-symb|
|00004510| 6f 6c 20 61 74 74 72 2d | 73 79 6d 62 6f 6c 20 61 |ol attr-|symbol a|
|00004520| 74 74 72 2d 76 61 6c 75 | 65 5d 20 34 20 22 5c 0a |ttr-valu|e] 4 "\.|
|00004530| 53 65 74 73 20 4f 42 4a | 2d 53 59 4d 42 4f 4c 27 |Sets OBJ|-SYMBOL'|
|00004540| 73 20 61 74 74 72 69 62 | 75 74 65 20 41 54 54 52 |s attrib|ute ATTR|
|00004550| 2d 53 59 4d 42 4f 4c 20 | 74 6f 20 41 54 54 52 2d |-SYMBOL |to ATTR-|
|00004560| 56 41 4c 55 45 2e 22 5d | 29 0a 28 66 73 65 74 20 |VALUE."]|).(fset |
|00004570| 27 68 61 74 74 72 3a 73 | 75 6d 6d 61 72 69 7a 65 |'hattr:s|ummarize|
|00004580| 20 27 68 61 74 74 72 3a | 72 65 70 6f 72 74 29 0a | 'hattr:|report).|
|00004590| 28 64 65 66 76 61 72 20 | 68 61 74 74 72 3a 66 69 |(defvar |hattr:fi|
|000045a0| 6c 65 6e 61 6d 65 20 22 | 2e 68 79 70 62 22 20 22 |lename "|.hypb" "|
|000045b0| 5c 0a 50 65 72 20 64 69 | 72 65 63 74 6f 72 79 20 |\.Per di|rectory |
|000045c0| 66 69 6c 65 20 6e 61 6d | 65 20 69 6e 20 77 68 69 |file nam|e in whi|
|000045d0| 63 68 20 65 78 70 6c 69 | 63 69 74 20 62 75 74 74 |ch expli|cit butt|
|000045e0| 6f 6e 20 61 74 74 72 69 | 62 75 74 65 73 20 61 72 |on attri|butes ar|
|000045f0| 65 20 73 74 6f 72 65 64 | 2e 0a 49 66 20 79 6f 75 |e stored|..If you|
|00004600| 20 63 68 61 6e 67 65 20 | 69 74 73 20 76 61 6c 75 | change |its valu|
|00004610| 65 2c 20 79 6f 75 20 77 | 69 6c 6c 20 62 65 20 75 |e, you w|ill be u|
|00004620| 6e 61 62 6c 65 20 74 6f | 20 75 73 65 20 62 75 74 |nable to| use but|
|00004630| 74 6f 6e 73 20 63 72 65 | 61 74 65 64 20 62 79 0a |tons cre|ated by.|
|00004640| 6f 74 68 65 72 73 20 77 | 68 6f 20 75 73 65 20 61 |others w|ho use a|
|00004650| 20 64 69 66 66 65 72 65 | 6e 74 20 76 61 6c 75 65 | differe|nt value|
|00004660| 21 22 29 0a 28 66 73 65 | 74 20 27 68 62 75 74 3a |!").(fse|t 'hbut:|
|00004670| 61 63 74 20 23 5b 28 68 | 62 75 74 29 20 22 08 ad |act #[(h|but) "..|
|00004680| 8b c1 c2 c3 08 c4 5c 22 | c3 08 c5 5c 22 23 87 22 |......\"|...\"#."|
|00004690| 20 5b 68 62 75 74 20 61 | 70 70 6c 79 20 61 63 74 | [hbut a|pply act|
|000046a0| 79 70 65 3a 61 63 74 20 | 68 61 74 74 72 3a 67 65 |ype:act |hattr:ge|
|000046b0| 74 20 61 63 74 79 70 65 | 20 61 72 67 73 5d 20 36 |t actype| args] 6|
|000046c0| 20 22 5c 0a 50 65 72 66 | 6f 72 6d 73 20 61 63 74 | "\.Perf|orms act|
|000046d0| 69 6f 6e 20 66 6f 72 20 | 65 78 70 6c 69 63 69 74 |ion for |explicit|
|000046e0| 20 6f 72 20 69 6d 70 6c | 69 63 69 74 20 48 79 70 | or impl|icit Hyp|
|000046f0| 65 72 62 6f 6c 65 20 62 | 75 74 74 6f 6e 20 73 79 |erbole b|utton sy|
|00004700| 6d 62 6f 6c 20 48 42 55 | 54 2e 22 5d 29 0a 28 66 |mbol HBU|T."]).(f|
|00004710| 73 65 74 20 27 68 62 75 | 74 3a 61 63 74 69 6f 6e |set 'hbu|t:action|
|00004720| 20 23 5b 28 68 62 75 74 | 29 20 22 c0 09 c2 5c 22 | #[(hbut|) "...\"|
|00004730| c3 89 1c 1d 89 1a c6 3d | ab 9d c0 09 c4 5c 22 14 |.......=|.....\".|
|00004740| c0 09 c7 5c 22 15 c8 0d | 21 47 c9 55 ab 83 0d aa |...\"...|!G.U....|
|00004750| 8e 0c ae 8b ca 0d 21 aa | 86 cb 0d 21 ad 81 0d 2b |......!.|...!...+|
|00004760| 87 22 20 5b 68 61 74 74 | 72 3a 67 65 74 20 68 62 |." [hatt|r:get hb|
|00004770| 75 74 20 63 61 74 65 67 | 20 6e 69 6c 20 61 63 74 |ut categ| nil act|
|00004780| 69 6f 6e 20 61 74 79 70 | 65 20 65 78 70 6c 69 63 |ion atyp|e explic|
|00004790| 69 74 20 61 63 74 79 70 | 65 20 73 79 6d 62 6f 6c |it actyp|e symbol|
|000047a0| 2d 6e 61 6d 65 20 32 20 | 61 63 74 79 70 65 3a 61 |-name 2 |actype:a|
|000047b0| 63 74 69 6f 6e 20 66 62 | 6f 75 6e 64 70 5d 20 34 |ction fb|oundp] 4|
|000047c0| 20 22 5c 0a 52 65 74 75 | 72 6e 73 20 61 70 70 72 | "\.Retu|rns appr|
|000047d0| 6f 70 72 69 61 74 65 20 | 61 63 74 69 6f 6e 20 66 |opriate |action f|
|000047e0| 6f 72 20 48 79 70 65 72 | 62 6f 6c 65 20 62 75 74 |or Hyper|bole but|
|000047f0| 74 6f 6e 20 73 79 6d 62 | 6f 6c 20 48 42 55 54 2e |ton symb|ol HBUT.|
|00004800| 22 5d 29 0a 28 66 73 65 | 74 20 27 68 62 75 74 3a |"]).(fse|t 'hbut:|
|00004810| 61 74 2d 70 20 23 5b 6e | 69 6c 20 22 c0 20 ae 82 |at-p #[n|il ". ..|
|00004820| c1 20 87 22 20 5b 65 62 | 75 74 3a 61 74 2d 70 20 |. ." [eb|ut:at-p |
|00004830| 69 62 75 74 3a 61 74 2d | 70 5d 20 31 20 22 5c 0a |ibut:at-|p] 1 "\.|
|00004840| 52 65 74 75 72 6e 73 20 | 73 79 6d 62 6f 6c 20 66 |Returns |symbol f|
|00004850| 6f 72 20 65 78 70 6c 69 | 63 69 74 20 6f 72 20 69 |or expli|cit or i|
|00004860| 6d 70 6c 69 63 69 74 20 | 48 79 70 65 72 62 6f 6c |mplicit |Hyperbol|
|00004870| 65 20 62 75 74 74 6f 6e | 20 61 74 20 70 6f 69 6e |e button| at poin|
|00004880| 74 20 6f 72 20 6e 69 6c | 2e 22 5d 29 0a 28 66 73 |t or nil|."]).(fs|
|00004890| 65 74 20 27 68 62 75 74 | 3a 63 6f 6d 6d 65 6e 74 |et 'hbut|:comment|
|000048a0| 20 23 5b 28 73 74 61 72 | 74 20 65 6e 64 29 20 22 | #[(star|t end) "|
|000048b0| 8a 08 ad d9 09 c2 9a ac | 83 09 ac 9b c3 79 88 c4 |........|.....y..|
|000048c0| 08 0d c6 23 3f ad c6 0d | 62 88 08 63 88 68 c7 55 |...#?...|b..c.h.U|
|000048d0| 3f ad ba c7 63 aa b6 c8 | c9 08 21 ca c9 09 21 51 |?...c...|..!...!Q|
|000048e0| cb c6 23 ad 85 cc c9 08 | 21 21 3f ad a0 0d 62 88 |..#.....|!!?...b.|
|000048f0| 08 63 88 68 c7 55 ac 83 | c7 63 88 60 0e 0d 0d 5a |.c.h.U..|.c.`...Z|
|00004900| 5c 5c 62 88 67 c7 55 ac | 83 c7 63 88 09 63 29 87 |\\b.g.U.|..c..c).|
|00004910| 22 20 5b 63 6f 6d 6d 65 | 6e 74 2d 73 74 61 72 74 |" [comme|nt-start|
|00004920| 20 63 6f 6d 6d 65 6e 74 | 2d 65 6e 64 20 22 22 20 | comment|-end "" |
|00004930| 30 20 73 65 61 72 63 68 | 2d 66 6f 72 77 61 72 64 |0 search|-forward|
|00004940| 20 73 74 61 72 74 20 74 | 20 33 32 20 72 65 2d 73 | start t| 32 re-s|
|00004950| 65 61 72 63 68 2d 62 61 | 63 6b 77 61 72 64 20 72 |earch-ba|ckward r|
|00004960| 65 67 65 78 70 2d 71 75 | 6f 74 65 20 22 5c 5c 7c |egexp-qu|ote "\\||
|00004970| 22 20 6e 69 6c 20 6c 6f | 6f 6b 69 6e 67 2d 61 74 |" nil lo|oking-at|
|00004980| 20 65 6e 64 5d 20 35 20 | 22 5c 0a 43 6f 6d 6d 65 | end] 5 |"\.Comme|
|00004990| 6e 74 20 62 75 74 74 6f | 6e 20 6c 61 62 65 6c 20 |nt butto|n label |
|000049a0| 73 70 61 6e 6e 69 6e 67 | 20 72 65 67 69 6f 6e 20 |spanning| region |
|000049b0| 53 54 41 52 54 20 74 6f | 20 45 4e 44 20 69 6e 20 |START to| END in |
|000049c0| 63 75 72 72 65 6e 74 20 | 62 75 66 66 65 72 2e 0a |current |buffer..|
|000049d0| 55 73 65 20 62 75 66 66 | 65 72 20 63 6f 6d 6d 65 |Use buff|er comme|
|000049e0| 6e 74 69 6e 67 20 67 72 | 61 6d 6d 61 72 2c 20 69 |nting gr|ammar, i|
|000049f0| 66 20 61 6e 79 2c 20 6f | 74 68 65 72 77 69 73 65 |f any, o|therwise|
|00004a00| 20 64 6f 6e 27 74 20 63 | 6f 6d 6d 65 6e 74 2e 22 | don't c|omment."|
|00004a10| 5d 29 0a 28 64 65 66 76 | 61 72 20 68 62 75 74 3a |]).(defv|ar hbut:|
|00004a20| 66 69 6c 6c 2d 70 72 65 | 66 69 78 2d 72 65 67 65 |fill-pre|fix-rege|
|00004a30| 78 70 73 20 27 28 22 5c | 6e 5b 20 09 5d 2a 5c 5c |xps '("\|n[ .]*\\|
|00004a40| 28 5b 3a 7c 3c 3e 5d 2b | 20 2a 5c 5c 29 2b 22 20 |([:|<>]+| *\\)+" |
|00004a50| 22 5c 6e 5b 20 09 5d 2a | 5b 5e 27 60 5c 22 3c 20 |"\n[ .]*|[^'`\"< |
|00004a60| 09 5d 2a 3e 20 2a 22 20 | 22 5c 6e 5b 20 09 5d 2a |.]*> *" |"\n[ .]*|
|00004a70| 5c 5c 28 3b 2b 5b 20 09 | 5d 2a 5c 5c 29 2b 22 20 |\\(;+[ .|]*\\)+" |
|00004a80| 22 5c 6e 5b 20 09 5d 2a | 5c 5c 28 23 2b 5b 20 09 |"\n[ .]*|\\(#+[ .|
|00004a90| 5d 2a 5c 5c 29 2b 22 20 | 22 5c 6e 5b 20 09 5d 2a |]*\\)+" |"\n[ .]*|
|00004aa0| 2f 2f 5b 2f 20 09 5d 2b | 22 20 22 5c 5c 2a 2b 5b |//[/ .]+|" "\\*+[|
|00004ab0| 2f 29 5d 5b 20 09 5d 2a | 5c 6e 2b 5b 20 09 5d 2a |/)][ .]*|\n+[ .]*|
|00004ac0| 5b 2f 28 5d 5c 5c 2a 2b | 22 20 22 7d 5b 20 09 5d |[/(]\\*+|" "}[ .]|
|00004ad0| 2a 5c 6e 2b 5b 20 09 5d | 2a 7b 22 20 22 5c 6e 5b |*\n+[ .]|*{" "\n[|
|00004ae0| 20 09 5d 2a 2d 2d 5b 20 | 09 5d 2b 22 20 22 5c 6e | .]*--[ |.]+" "\n|
|00004af0| 5b 43 63 5d 5b 20 09 5d | 2b 22 20 22 5c 6e 5b 20 |[Cc][ .]|+" "\n[ |
|00004b00| 09 5d 2a 5c 5c 28 25 2b | 5b 20 09 5d 2a 5c 5c 29 |.]*\\(%+|[ .]*\\)|
|00004b10| 2b 22 29 20 22 5c 0a 4c | 69 73 74 20 6f 66 20 72 |+") "\.L|ist of r|
|00004b20| 65 67 65 78 70 73 20 6f | 66 20 66 69 6c 6c 20 70 |egexps o|f fill p|
|00004b30| 72 65 66 69 78 65 73 20 | 74 6f 20 72 65 6d 6f 76 |refixes |to remov|
|00004b40| 65 20 66 72 6f 6d 20 74 | 68 65 20 6d 69 64 64 6c |e from t|he middl|
|00004b50| 65 20 6f 66 20 62 75 74 | 74 6f 6e 73 2e 22 29 0a |e of but|tons.").|
|00004b60| 28 66 73 65 74 20 27 68 | 62 75 74 3a 66 69 6c 6c |(fset 'h|but:fill|
|00004b70| 2d 70 72 65 66 69 78 2d | 72 65 6d 6f 76 65 20 23 |-prefix-|remove #|
|00004b80| 5b 28 6c 61 62 65 6c 29 | 20 22 c0 c1 5c 6e 5c 22 |[(label)| "..\n\"|
|00004b90| ab 85 c3 c4 0d 5c 22 88 | 5c 6e 87 22 20 5b 73 74 |.....\".|\n." [st|
|00004ba0| 72 69 6e 67 2d 6d 61 74 | 63 68 20 22 5c 6e 22 20 |ring-mat|ch "\n" |
|00004bb0| 6c 61 62 65 6c 20 6d 61 | 70 63 61 72 20 23 5b 28 |label ma|pcar #[(|
|00004bc0| 66 69 6c 6c 2d 70 72 65 | 66 69 78 29 20 22 c0 c1 |fill-pre|fix) "..|
|00004bd0| 5c 6e 5c 22 ad 88 c3 0c | 5c 6e c5 c6 24 89 12 87 |\n\"....|\n..$...|
|00004be0| 22 20 5b 73 74 72 69 6e | 67 2d 6d 61 74 63 68 20 |" [strin|g-match |
|00004bf0| 22 5c 6e 22 20 6c 61 62 | 65 6c 20 68 79 70 62 3a |"\n" lab|el hypb:|
|00004c00| 72 65 70 6c 61 63 65 2d | 6d 61 74 63 68 2d 73 74 |replace-|match-st|
|00004c10| 72 69 6e 67 20 66 69 6c | 6c 2d 70 72 65 66 69 78 |ring fil|l-prefix|
|00004c20| 20 22 20 22 20 74 5d 20 | 35 5d 20 68 62 75 74 3a | " " t] |5] hbut:|
|00004c30| 66 69 6c 6c 2d 70 72 65 | 66 69 78 2d 72 65 67 65 |fill-pre|fix-rege|
|00004c40| 78 70 73 5d 20 33 20 22 | 5c 0a 52 65 6d 6f 76 65 |xps] 3 "|\.Remove|
|00004c50| 73 20 61 6e 79 20 72 65 | 63 6f 67 6e 69 7a 65 64 |s any re|cognized|
|00004c60| 20 66 69 6c 6c 20 70 72 | 65 66 69 78 20 66 72 6f | fill pr|efix fro|
|00004c70| 6d 20 77 69 74 68 69 6e | 20 4c 41 42 45 4c 2e 0a |m within| LABEL..|
|00004c80| 27 68 62 75 74 3a 66 69 | 6c 6c 2d 70 72 65 66 69 |'hbut:fi|ll-prefi|
|00004c90| 78 2d 72 65 67 65 78 70 | 73 27 20 69 73 20 61 20 |x-regexp|s' is a |
|00004ca0| 6c 69 73 74 20 6f 66 20 | 66 69 6c 6c 20 70 72 65 |list of |fill pre|
|00004cb0| 66 69 78 65 73 20 74 6f | 20 72 65 63 6f 67 6e 69 |fixes to| recogni|
|00004cc0| 7a 65 2e 22 5d 29 0a 28 | 66 73 65 74 20 27 68 62 |ze."]).(|fset 'hb|
|00004cd0| 75 74 3a 69 73 2d 70 20 | 23 5b 28 6f 62 6a 65 63 |ut:is-p |#[(objec|
|00004ce0| 74 29 20 22 08 39 ad 84 | c1 08 c2 5c 22 87 22 20 |t) ".9..|...\"." |
|00004cf0| 5b 6f 62 6a 65 63 74 20 | 68 61 74 74 72 3a 67 65 |[object |hattr:ge|
|00004d00| 74 20 63 61 74 65 67 5d | 20 33 20 22 5c 0a 52 65 |t categ]| 3 "\.Re|
|00004d10| 74 75 72 6e 73 20 6e 6f | 6e 2d 6e 69 6c 20 69 66 |turns no|n-nil if|
|00004d20| 20 6f 62 6a 65 63 74 20 | 64 65 6e 6f 74 65 73 20 | object |denotes |
|00004d30| 61 20 48 79 70 65 72 62 | 6f 6c 65 20 62 75 74 74 |a Hyperb|ole butt|
|00004d40| 6f 6e 2e 22 5d 29 0a 28 | 62 79 74 65 2d 63 6f 64 |on."]).(|byte-cod|
|00004d50| 65 20 22 c0 c1 4d 88 c2 | c3 4d 87 22 20 5b 68 62 |e "..M..|.M." [hb|
|00004d60| 75 74 3a 6b 65 79 2d 73 | 72 63 20 65 62 75 74 3a |ut:key-s|rc ebut:|
|00004d70| 6b 65 79 2d 73 72 63 20 | 68 62 75 74 3a 6b 65 79 |key-src |hbut:key|
|00004d80| 2d 74 6f 2d 6c 61 62 65 | 6c 20 65 62 75 74 3a 6b |-to-labe|l ebut:k|
|00004d90| 65 79 2d 74 6f 2d 6c 61 | 62 65 6c 5d 20 32 29 0a |ey-to-la|bel] 2).|
|00004da0| 28 66 73 65 74 20 27 68 | 62 75 74 3a 6c 61 62 65 |(fset 'h|but:labe|
|00004db0| 6c 20 23 5b 28 68 62 75 | 74 29 20 22 c0 09 21 ab |l #[(hbu|t) "..!.|
|00004dc0| 87 c2 c3 09 c4 5c 22 21 | 87 c5 c6 09 5c 22 87 22 |.....\"!|....\"."|
|00004dd0| 20 5b 68 62 75 74 3a 69 | 73 2d 70 20 68 62 75 74 | [hbut:i|s-p hbut|
|00004de0| 20 68 62 75 74 3a 6b 65 | 79 2d 74 6f 2d 6c 61 62 | hbut:ke|y-to-lab|
|00004df0| 65 6c 20 68 61 74 74 72 | 3a 67 65 74 20 6c 62 6c |el hattr|:get lbl|
|00004e00| 2d 6b 65 79 20 65 72 72 | 6f 72 20 22 28 68 62 75 |-key err|or "(hbu|
|00004e10| 74 3a 6c 61 62 65 6c 29 | 3a 20 41 72 67 75 6d 65 |t:label)|: Argume|
|00004e20| 6e 74 20 69 73 20 6e 6f | 74 20 61 20 48 79 70 65 |nt is no|t a Hype|
|00004e30| 72 62 6f 6c 65 20 62 75 | 74 74 6f 6e 20 73 79 6d |rbole bu|tton sym|
|00004e40| 62 6f 6c 2c 20 27 25 73 | 27 22 5d 20 34 20 22 5c |bol, '%s|'"] 4 "\|
|00004e50| 0a 52 65 74 75 72 6e 73 | 20 74 68 65 20 6c 61 62 |.Returns| the lab|
|00004e60| 65 6c 20 66 6f 72 20 48 | 79 70 65 72 62 6f 6c 65 |el for H|yperbole|
|00004e70| 20 62 75 74 74 6f 6e 20 | 73 79 6d 62 6f 6c 20 48 | button |symbol H|
|00004e80| 42 55 54 2e 22 5d 29 0a | 28 62 79 74 65 2d 63 6f |BUT."]).|(byte-co|
|00004e90| 64 65 20 22 c0 c1 4d 88 | c2 c3 4d 87 22 20 5b 68 |de "..M.|..M." [h|
|00004ea0| 62 75 74 3a 6c 61 62 65 | 6c 2d 70 20 65 62 75 74 |but:labe|l-p ebut|
|00004eb0| 3a 6c 61 62 65 6c 2d 70 | 20 68 62 75 74 3a 6c 61 |:label-p| hbut:la|
|00004ec0| 62 65 6c 2d 74 6f 2d 6b | 65 79 20 65 62 75 74 3a |bel-to-k|ey ebut:|
|00004ed0| 6c 61 62 65 6c 2d 74 6f | 2d 6b 65 79 5d 20 32 29 |label-to|-key] 2)|
|00004ee0| 0a 28 66 73 65 74 20 27 | 68 62 75 74 3a 72 65 70 |.(fset '|hbut:rep|
|00004ef0| 6f 72 74 20 23 5b 28 26 | 6f 70 74 69 6f 6e 61 6c |ort #[(&|optional|
|00004f00| 20 61 72 67 29 20 22 08 | a8 ac 84 08 39 ab 83 08 | arg) ".|....9...|
|00004f10| aa 92 08 3c ab 8d 08 40 | 89 10 a8 ab 83 08 aa 84 |...<...@|........|
|00004f20| c1 aa 81 c1 89 10 ab 87 | 08 39 ab 83 08 aa 82 c2 |........|.9......|
|00004f30| 20 89 1b ad 84 c4 0b c5 | 5c 22 1e 06 0b ab 86 c4 | .......|\"......|
|00004f40| 0b c7 5c 22 ae 82 c8 20 | 1e 09 08 ac 8b 0e 06 ad |..\"... |........|
|00004f50| a6 ca 0e 06 21 43 aa 9f | 08 39 ab 8d 0e 06 ad 97 |....!C..|.9......|
|00004f60| cb c4 08 c5 5c 22 21 43 | aa 8e 08 c1 57 ab 84 cc |....\"!C|....W...|
|00004f70| 20 aa 85 cd cc 20 ce 5c | 22 1e 0f 70 1e 10 d1 20 | .... .\|"..p... |
|00004f80| 1e 12 d3 1e 14 0e 0f ad | 9d 0e 12 90 d5 0e 16 21 |........|.......!|
|00004f90| 88 d7 0e 09 21 88 d8 20 | 88 d8 20 88 d9 da 0e 0f |....!.. |.. .....|
|00004fa0| 5c 22 91 88 0e 0f 47 2e | 07 87 22 20 5b 61 72 67 |\"....G.|.." [arg|
|00004fb0| 20 31 20 68 62 75 74 3a | 61 74 2d 70 20 62 75 74 | 1 hbut:|at-p but|
|00004fc0| 20 68 61 74 74 72 3a 67 | 65 74 20 6c 62 6c 2d 6b | hattr:g|et lbl-k|
|00004fd0| 65 79 20 63 75 72 72 2d | 6b 65 79 20 6c 6f 63 20 |ey curr-|key loc |
|00004fe0| 68 62 75 74 3a 6b 65 79 | 2d 73 72 63 20 6b 65 79 |hbut:key|-src key|
|00004ff0| 2d 73 72 63 20 65 62 75 | 74 3a 6b 65 79 2d 74 6f |-src ebu|t:key-to|
|00005000| 2d 6c 61 62 65 6c 20 68 | 62 75 74 3a 6b 65 79 2d |-label h|but:key-|
|00005010| 74 6f 2d 6c 61 62 65 6c | 20 65 62 75 74 3a 6c 69 |to-label| ebut:li|
|00005020| 73 74 20 73 6f 72 74 20 | 23 5b 28 73 31 20 73 32 |st sort |#[(s1 s2|
|00005030| 29 20 22 08 97 09 97 99 | 87 22 20 5b 73 31 20 73 |) ".....|." [s1 s|
|00005040| 32 5d 20 32 5d 20 6c 62 | 6c 2d 6c 73 74 20 6b 65 |2] 2] lb|l-lst ke|
|00005050| 79 2d 62 75 66 20 68 79 | 70 62 3a 68 65 6c 70 2d |y-buf hy|pb:help-|
|00005060| 62 75 66 2d 6e 61 6d 65 | 20 62 75 66 2d 6e 61 6d |buf-name| buf-nam|
|00005070| 65 20 6e 69 6c 20 61 74 | 74 72 69 62 73 20 70 72 |e nil at|tribs pr|
|00005080| 69 6e 63 20 68 62 75 74 | 3a 73 6f 75 72 63 65 2d |inc hbut|:source-|
|00005090| 70 72 65 66 69 78 20 70 | 72 69 6e 31 20 74 65 72 |prefix p|rin1 ter|
|000050a0| 70 72 69 20 6d 61 70 63 | 61 72 20 23 5b 28 6c 62 |pri mapc|ar #[(lb|
|000050b0| 6c 29 20 22 08 ab 84 08 | 39 ab 83 09 aa 86 c2 c3 |l) "....|9.......|
|000050c0| 0c 21 0d 5c 22 11 c6 09 | 21 89 16 07 ad b5 c8 c9 |.!.\"...|!.......|
|000050d0| 09 21 ab 83 0c aa 86 0e | 5c 6e 0c 0e 0b 51 21 88 |.!......|\n...Q!.|
|000050e0| cc 20 88 cd 09 0e 0e 47 | cf 55 5c 22 89 1e 10 ab |. .....G|.U\"....|
|000050f0| 8c c8 d1 21 88 c8 0e 10 | 21 88 cc 20 88 29 d2 0e |...!....|!.. .)..|
|00005100| 07 21 88 cc 20 87 22 20 | 5b 61 72 67 20 62 75 74 |.!.. ." |[arg but|
|00005110| 20 65 62 75 74 3a 67 65 | 74 20 65 62 75 74 3a 6c | ebut:ge|t ebut:l|
|00005120| 61 62 65 6c 2d 74 6f 2d | 6b 65 79 20 6c 62 6c 20 |abel-to-|key lbl |
|00005130| 6b 65 79 2d 62 75 66 20 | 68 61 74 74 72 3a 6c 69 |key-buf |hattr:li|
|00005140| 73 74 20 61 74 74 72 69 | 62 73 20 70 72 69 6e 63 |st attri|bs princ|
|00005150| 20 69 62 75 74 3a 69 73 | 2d 70 20 65 62 75 74 3a | ibut:is|-p ebut:|
|00005160| 73 74 61 72 74 20 65 62 | 75 74 3a 65 6e 64 20 74 |start eb|ut:end t|
|00005170| 65 72 70 72 69 20 61 63 | 74 79 70 65 3a 64 6f 63 |erpri ac|type:doc|
|00005180| 20 6c 62 6c 2d 6c 73 74 | 20 31 20 64 6f 63 20 22 | lbl-lst| 1 doc "|
|00005190| 20 20 22 20 68 61 74 74 | 72 3a 72 65 70 6f 72 74 | " hatt|r:report|
|000051a0| 5d 20 35 5d 5d 20 35 20 | 22 5c 0a 50 72 65 74 74 |] 5]] 5 |"\.Prett|
|000051b0| 79 20 70 72 69 6e 74 73 | 20 74 68 65 20 61 74 74 |y prints| the att|
|000051c0| 72 69 62 75 74 65 73 20 | 6f 66 20 61 20 62 75 74 |ributes |of a but|
|000051d0| 74 6f 6e 20 6f 72 20 62 | 75 74 74 6f 6e 73 2e 0a |ton or b|uttons..|
|000051e0| 0a 54 61 6b 65 73 20 61 | 6e 20 6f 70 74 69 6f 6e |.Takes a|n option|
|000051f0| 61 6c 20 41 52 47 20 69 | 6e 74 65 72 70 72 65 74 |al ARG i|nterpret|
|00005200| 65 64 20 61 73 20 66 6f | 6c 6c 6f 77 73 3a 0a 20 |ed as fo|llows:. |
|00005210| 20 61 20 62 75 74 74 6f | 6e 20 73 79 6d 62 6f 6c | a butto|n symbol|
|00005220| 20 2d 20 72 65 70 6f 72 | 74 20 6f 6e 20 74 68 61 | - repor|t on tha|
|00005230| 74 20 62 75 74 74 6f 6e | 3b 0a 20 20 6e 69 6c 20 |t button|;. nil |
|00005240| 20 20 20 20 20 20 20 20 | 20 20 20 20 2d 20 72 65 | | - re|
|00005250| 70 6f 72 74 20 6f 6e 20 | 62 75 74 74 6f 6e 20 61 |port on |button a|
|00005260| 74 20 70 6f 69 6e 74 2c | 20 69 66 20 61 6e 79 3b |t point,| if any;|
|00005270| 0a 20 20 69 6e 74 65 67 | 65 72 20 3e 20 30 20 20 |. integ|er > 0 |
|00005280| 20 20 20 2d 20 72 65 70 | 6f 72 74 20 6f 6e 20 61 | - rep|ort on a|
|00005290| 6c 6c 20 65 78 70 6c 69 | 63 69 74 20 62 75 74 74 |ll expli|cit butt|
|000052a0| 6f 6e 73 20 69 6e 20 62 | 75 66 66 65 72 2c 20 61 |ons in b|uffer, a|
|000052b0| 6c 70 68 61 62 65 74 69 | 7a 65 3b 0a 20 20 69 6e |lphabeti|ze;. in|
|000052c0| 74 65 67 65 72 20 3c 20 | 31 20 20 20 20 20 2d 20 |teger < |1 - |
|000052d0| 72 65 70 6f 72 74 20 6f | 6e 20 61 6c 6c 20 65 78 |report o|n all ex|
|000052e0| 70 6c 69 63 69 74 20 62 | 75 74 74 6f 6e 73 20 69 |plicit b|uttons i|
|000052f0| 6e 20 6f 63 63 75 72 72 | 65 6e 63 65 20 6f 72 64 |n occurr|ence ord|
|00005300| 65 72 3b 0a 0a 52 65 74 | 75 72 6e 73 20 6e 75 6d |er;..Ret|urns num|
|00005310| 62 65 72 20 6f 66 20 62 | 75 74 74 6f 6e 73 20 72 |ber of b|uttons r|
|00005320| 65 70 6f 72 74 65 64 20 | 6f 6e 20 6f 72 20 6e 69 |eported |on or ni|
|00005330| 6c 20 69 66 20 6e 6f 6e | 65 2e 22 5d 29 0a 28 66 |l if non|e."]).(f|
|00005340| 73 65 74 20 27 68 62 75 | 74 3a 73 6f 75 72 63 65 |set 'hbu|t:source|
|00005350| 20 23 5b 28 26 6f 70 74 | 69 6f 6e 61 6c 20 66 75 | #[(&opt|ional fu|
|00005360| 6c 6c 29 20 22 c0 95 62 | 88 c1 c2 21 ab 88 c3 c4 |ll) "..b|...!....|
|00005370| 94 c4 95 7b 21 87 c1 c5 | 21 ad a2 c0 94 54 c0 95 |...{!...|!....T..|
|00005380| 53 7b 1e 06 c7 0e 06 21 | 1e 08 0e 09 ab 8c 0e 08 |S{.....!|........|
|00005390| ac 88 ca 0e 06 0e 0b 5c | 22 aa 82 0e 06 2a 87 22 |.......\|"....*."|
|000053a0| 20 5b 30 20 6c 6f 6f 6b | 69 6e 67 2d 61 74 20 22 | [0 look|ing-at "|
|000053b0| 23 3c 62 75 66 66 65 72 | 20 5c 5c 28 5b 5e 20 5c |#<buffer| \\([^ \|
|000053c0| 6e 5d 2b 5c 5c 29 3e 22 | 20 67 65 74 2d 62 75 66 |n]+\\)>"| get-buf|
|000053d0| 66 65 72 20 31 20 22 5c | 22 2e 2b 5c 22 22 20 66 |fer 1 "\|".+\"" f|
|000053e0| 69 6c 65 20 66 69 6c 65 | 2d 6e 61 6d 65 2d 61 62 |ile file|-name-ab|
|000053f0| 73 6f 6c 75 74 65 2d 70 | 20 61 62 73 6f 6c 75 74 |solute-p| absolut|
|00005400| 65 20 66 75 6c 6c 20 65 | 78 70 61 6e 64 2d 66 69 |e full e|xpand-fi|
|00005410| 6c 65 2d 6e 61 6d 65 20 | 64 65 66 61 75 6c 74 2d |le-name |default-|
|00005420| 64 69 72 65 63 74 6f 72 | 79 5d 20 33 20 22 5c 0a |director|y] 3 "\.|
|00005430| 52 65 74 75 72 6e 73 20 | 48 79 70 65 72 62 6f 6c |Returns |Hyperbol|
|00005440| 65 20 73 6f 75 72 63 65 | 20 62 75 66 66 65 72 20 |e source| buffer |
|00005450| 6f 72 20 66 69 6c 65 20 | 67 69 76 65 6e 20 61 74 |or file |given at|
|00005460| 20 70 6f 69 6e 74 2e 0a | 49 66 20 61 20 66 69 6c | point..|If a fil|
|00005470| 65 2c 20 61 6c 77 61 79 | 73 20 72 65 74 75 72 6e |e, alway|s return|
|00005480| 73 20 61 20 66 75 6c 6c | 20 70 61 74 68 20 69 66 |s a full| path if|
|00005490| 20 6f 70 74 69 6f 6e 61 | 6c 20 46 55 4c 4c 20 69 | optiona|l FULL i|
|000054a0| 73 20 6e 6f 6e 2d 6e 69 | 6c 2e 22 5d 29 0a 28 66 |s non-ni|l."]).(f|
|000054b0| 73 65 74 20 27 68 62 75 | 74 3a 73 75 6d 6d 61 72 |set 'hbu|t:summar|
|000054c0| 69 7a 65 20 27 68 62 75 | 74 3a 72 65 70 6f 72 74 |ize 'hbu|t:report|
|000054d0| 29 0a 28 64 65 66 76 61 | 72 20 68 62 75 74 3a 63 |).(defva|r hbut:c|
|000054e0| 75 72 72 65 6e 74 20 6e | 69 6c 20 22 5c 0a 43 75 |urrent n|il "\.Cu|
|000054f0| 72 72 65 6e 74 6c 79 20 | 73 65 6c 65 63 74 65 64 |rrently |selected|
|00005500| 20 48 79 70 65 72 62 6f | 6c 65 20 62 75 74 74 6f | Hyperbo|le butto|
|00005510| 6e 2e 0a 41 76 61 69 6c | 61 62 6c 65 20 74 6f 20 |n..Avail|able to |
|00005520| 61 63 74 69 6f 6e 20 72 | 6f 75 74 69 6e 65 73 2e |action r|outines.|
|00005530| 22 29 0a 28 64 65 66 63 | 6f 6e 73 74 20 68 62 75 |").(defc|onst hbu|
|00005540| 74 3a 73 6f 75 72 63 65 | 2d 70 72 65 66 69 78 20 |t:source|-prefix |
|00005550| 6d 6f 63 63 75 72 2d 73 | 6f 75 72 63 65 2d 70 72 |moccur-s|ource-pr|
|00005560| 65 66 69 78 20 22 5c 0a | 53 74 72 69 6e 67 20 66 |efix "\.|String f|
|00005570| 6f 75 6e 64 20 61 74 20 | 73 74 61 72 74 20 6f 66 |ound at |start of|
|00005580| 20 61 20 62 75 66 66 65 | 72 20 63 6f 6e 74 61 69 | a buffe|r contai|
|00005590| 6e 69 6e 67 20 6f 6e 6c | 79 20 61 20 68 79 70 65 |ning onl|y a hype|
|000055a0| 72 2d 62 75 74 74 6f 6e | 20 6d 65 6e 75 2e 0a 20 |r-button| menu.. |
|000055b0| 20 20 54 68 69 73 20 65 | 78 70 72 65 73 73 69 6f | This e|xpressio|
|000055c0| 6e 20 73 68 6f 75 6c 64 | 20 62 65 20 66 6f 6c 6c |n should| be foll|
|000055d0| 6f 77 65 64 20 69 6d 6d | 65 64 69 61 74 65 6c 79 |owed imm|ediately|
|000055e0| 20 62 79 20 61 20 66 69 | 6c 65 2d 6e 61 6d 65 20 | by a fi|le-name |
|000055f0| 69 6e 64 69 63 61 74 69 | 6e 67 20 74 68 65 0a 73 |indicati|ng the.s|
|00005600| 6f 75 72 63 65 20 66 69 | 6c 65 20 66 6f 72 20 74 |ource fi|le for t|
|00005610| 68 65 20 62 75 74 74 6f | 6e 73 20 69 6e 20 74 68 |he butto|ns in th|
|00005620| 65 20 6d 65 6e 75 2c 20 | 69 66 20 61 6e 79 2e 22 |e menu, |if any."|
|00005630| 29 0a 28 72 65 71 75 69 | 72 65 20 27 73 65 74 29 |).(requi|re 'set)|
|00005640| 0a 28 66 73 65 74 20 27 | 68 74 79 70 65 3a 62 6f |.(fset '|htype:bo|
|00005650| 64 79 20 23 5b 28 68 74 | 79 70 65 2d 73 79 6d 29 |dy #[(ht|ype-sym)|
|00005660| 20 22 08 ad 83 c1 08 21 | 87 22 20 5b 68 74 79 70 | ".....!|." [htyp|
|00005670| 65 2d 73 79 6d 20 68 79 | 70 62 3a 69 6e 64 69 72 |e-sym hy|pb:indir|
|00005680| 65 63 74 2d 66 75 6e 63 | 74 69 6f 6e 5d 20 32 20 |ect-func|tion] 2 |
|00005690| 22 5c 0a 52 65 74 75 72 | 6e 20 62 6f 64 79 20 66 |"\.Retur|n body f|
|000056a0| 6f 72 20 48 54 59 50 45 | 2d 53 59 4d 2e 20 20 49 |or HTYPE|-SYM. I|
|000056b0| 66 20 48 54 59 50 45 2d | 53 59 4d 20 69 73 20 6e |f HTYPE-|SYM is n|
|000056c0| 69 6c 2c 20 72 65 74 75 | 72 6e 20 6e 69 6c 2e 22 |il, retu|rn nil."|
|000056d0| 5d 29 0a 28 66 73 65 74 | 20 27 68 74 79 70 65 3a |]).(fset| 'htype:|
|000056e0| 63 61 74 65 67 6f 72 79 | 20 23 5b 28 74 79 70 65 |category| #[(type|
|000056f0| 2d 63 61 74 65 67 6f 72 | 79 29 20 22 c0 09 c2 5c |-categor|y) "...\|
|00005700| 22 c3 09 21 1c 1d c6 c7 | 0d 5c 22 2a 87 22 20 5b |"..!....|.\"*." [|
|00005710| 73 79 6d 73 65 74 3a 67 | 65 74 20 74 79 70 65 2d |symset:g|et type-|
|00005720| 63 61 74 65 67 6f 72 79 | 20 73 79 6d 62 6f 6c 73 |category| symbols|
|00005730| 20 73 79 6d 62 6f 6c 2d | 6e 61 6d 65 20 63 61 74 | symbol-|name cat|
|00005740| 65 67 2d 6e 61 6d 65 20 | 74 79 70 65 73 20 6d 61 |eg-name |types ma|
|00005750| 70 63 61 72 20 23 5b 28 | 74 79 70 65 29 20 22 c0 |pcar #[(|type) ".|
|00005760| 09 c2 c3 0c 21 51 21 87 | 22 20 5b 69 6e 74 65 72 |....!Q!.|" [inter|
|00005770| 6e 20 63 61 74 65 67 2d | 6e 61 6d 65 20 22 3a 3a |n categ-|name "::|
|00005780| 22 20 73 79 6d 62 6f 6c | 2d 6e 61 6d 65 20 74 79 |" symbol|-name ty|
|00005790| 70 65 5d 20 35 5d 5d 20 | 33 20 22 5c 0a 52 65 74 |pe] 5]] |3 "\.Ret|
|000057a0| 75 72 6e 20 6c 69 73 74 | 20 6f 66 20 73 79 6d 62 |urn list| of symb|
|000057b0| 6f 6c 73 20 69 6e 20 48 | 79 70 65 72 62 6f 6c 65 |ols in H|yperbole|
|000057c0| 20 54 59 50 45 2d 43 41 | 54 45 47 4f 52 59 20 69 | TYPE-CA|TEGORY i|
|000057d0| 6e 20 70 72 69 6f 72 69 | 74 79 20 6f 72 64 65 72 |n priori|ty order|
|000057e0| 2e 0a 53 79 6d 62 6f 6c | 73 20 63 6f 6e 74 61 69 |..Symbol|s contai|
|000057f0| 6e 20 63 61 74 65 67 6f | 72 79 20 63 6f 6d 70 6f |n catego|ry compo|
|00005800| 6e 65 6e 74 2e 0a 54 59 | 50 45 2d 43 41 54 45 47 |nent..TY|PE-CATEG|
|00005810| 4f 52 59 20 73 68 6f 75 | 6c 64 20 62 65 20 27 61 |ORY shou|ld be 'a|
|00005820| 63 74 79 70 65 73 2c 20 | 27 69 62 74 79 70 65 73 |ctypes, |'ibtypes|
|00005830| 20 6f 72 20 6e 69 6c 20 | 66 6f 72 20 61 6c 6c 2e | or nil |for all.|
|00005840| 22 5d 29 0a 28 66 73 65 | 74 20 27 68 74 79 70 65 |"]).(fse|t 'htype|
|00005850| 3a 63 72 65 61 74 65 20 | 27 28 6d 61 63 72 6f 20 |:create |'(macro |
|00005860| 2e 20 23 5b 28 74 79 70 | 65 20 74 79 70 65 2d 63 |. #[(typ|e type-c|
|00005870| 61 74 65 67 6f 72 79 20 | 64 6f 63 20 70 61 72 61 |ategory |doc para|
|00005880| 6d 73 20 62 6f 64 79 20 | 70 72 6f 70 65 72 74 79 |ms body |property|
|00005890| 2d 6c 69 73 74 29 20 22 | c0 09 5c 6e 5c 22 1b c4 |-list) "|..\n\"..|
|000058a0| 0b 0d 0e 06 46 0e 07 a4 | 1e 08 c9 0e 08 ca cb 0b |....F...|........|
|000058b0| 44 0e 0c 45 cd cb 09 44 | cb 5c 6e 44 ce 42 42 42 |D..E...D|.\nD.BBB|
|000058c0| cf cb 0b 44 af 06 2a 87 | 22 20 5b 68 74 79 70 65 |...D..*.|" [htype|
|000058d0| 3a 73 79 6d 62 6f 6c 20 | 74 79 70 65 20 74 79 70 |:symbol |type typ|
|000058e0| 65 2d 63 61 74 65 67 6f | 72 79 20 73 79 6d 20 64 |e-catego|ry sym d|
|000058f0| 65 66 75 6e 20 70 61 72 | 61 6d 73 20 64 6f 63 20 |efun par|ams doc |
|00005900| 62 6f 64 79 20 61 63 74 | 69 6f 6e 20 70 72 6f 67 |body act|ion prog|
|00005910| 6e 20 73 65 74 70 6c 69 | 73 74 20 71 75 6f 74 65 |n setpli|st quote|
|00005920| 20 70 72 6f 70 65 72 74 | 79 2d 6c 69 73 74 20 73 | propert|y-list s|
|00005930| 79 6d 73 65 74 3a 61 64 | 64 20 28 27 73 79 6d 62 |ymset:ad|d ('symb|
|00005940| 6f 6c 73 29 20 28 72 75 | 6e 2d 68 6f 6f 6b 73 20 |ols) (ru|n-hooks |
|00005950| 27 68 74 79 70 65 3a 63 | 72 65 61 74 65 2d 68 6f |'htype:c|reate-ho|
|00005960| 6f 6b 29 5d 20 37 20 22 | 5c 0a 43 72 65 61 74 65 |ok)] 7 "|\.Create|
|00005970| 20 61 20 6e 65 77 20 48 | 79 70 65 72 62 6f 6c 65 | a new H|yperbole|
|00005980| 20 54 59 50 45 20 77 69 | 74 68 69 6e 20 54 59 50 | TYPE wi|thin TYP|
|00005990| 45 2d 43 41 54 45 47 4f | 52 59 20 28 62 6f 74 68 |E-CATEGO|RY (both|
|000059a0| 20 75 6e 71 75 6f 74 65 | 64 20 73 79 6d 62 6f 6c | unquote|d symbol|
|000059b0| 73 29 2e 0a 54 68 69 72 | 64 20 61 72 67 20 44 4f |s)..Thir|d arg DO|
|000059c0| 43 20 69 73 20 61 20 73 | 74 72 69 6e 67 20 64 65 |C is a s|tring de|
|000059d0| 73 63 72 69 62 69 6e 67 | 20 74 68 65 20 74 79 70 |scribing| the typ|
|000059e0| 65 2e 0a 46 6f 75 72 74 | 68 20 61 72 67 20 50 41 |e..Fourt|h arg PA|
|000059f0| 52 41 4d 53 20 69 73 20 | 61 20 6c 69 73 74 20 6f |RAMS is |a list o|
|00005a00| 66 20 70 61 72 61 6d 65 | 74 65 72 73 20 74 6f 20 |f parame|ters to |
|00005a10| 73 65 6e 64 20 74 6f 20 | 74 68 65 20 66 69 66 74 |send to |the fift|
|00005a20| 68 20 61 72 67 20 42 4f | 44 59 2c 0a 77 68 69 63 |h arg BO|DY,.whic|
|00005a30| 68 20 69 73 20 61 20 6c | 69 73 74 20 6f 66 20 66 |h is a l|ist of f|
|00005a40| 6f 72 6d 73 20 65 78 65 | 63 75 74 65 64 20 77 68 |orms exe|cuted wh|
|00005a50| 65 6e 20 74 68 65 20 74 | 79 70 65 20 69 73 20 65 |en the t|ype is e|
|00005a60| 76 61 6c 75 61 74 65 64 | 2e 0a 53 69 78 74 68 20 |valuated|..Sixth |
|00005a70| 61 72 67 20 50 52 4f 50 | 45 52 54 59 2d 4c 49 53 |arg PROP|ERTY-LIS|
|00005a80| 54 20 69 73 20 61 74 74 | 61 63 68 65 64 20 74 6f |T is att|ached to|
|00005a90| 20 74 68 65 20 6e 65 77 | 20 74 79 70 65 27 73 20 | the new| type's |
|00005aa0| 73 79 6d 62 6f 6c 2e 0a | 0a 54 68 69 73 20 73 79 |symbol..|.This sy|
|00005ab0| 6d 62 6f 6c 20 69 73 20 | 72 65 74 75 72 6e 65 64 |mbol is |returned|
|00005ac0| 2e 22 5d 29 29 0a 28 66 | 73 65 74 20 27 68 74 79 |."])).(f|set 'hty|
|00005ad0| 70 65 3a 64 65 6c 65 74 | 65 20 23 5b 28 74 79 70 |pe:delet|e #[(typ|
|00005ae0| 65 20 74 79 70 65 2d 63 | 61 74 65 67 6f 72 79 29 |e type-c|ategory)|
|00005af0| 20 22 c0 09 5c 6e 5c 22 | 1b c4 c3 21 1d c6 0b c7 | "..\n\"|...!....|
|00005b00| 5c 22 88 c8 09 5c 6e c9 | 23 88 ca 0b 21 88 cb cc |\"...\n.|#...!...|
|00005b10| 21 88 0d ad 81 0b 2a 87 | 22 20 5b 68 74 79 70 65 |!.....*.|" [htype|
|00005b20| 3a 73 79 6d 62 6f 6c 20 | 74 79 70 65 20 74 79 70 |:symbol |type typ|
|00005b30| 65 2d 63 61 74 65 67 6f | 72 79 20 73 79 6d 20 66 |e-catego|ry sym f|
|00005b40| 62 6f 75 6e 64 70 20 65 | 78 69 73 74 73 20 73 65 |boundp e|xists se|
|00005b50| 74 70 6c 69 73 74 20 6e | 69 6c 20 73 79 6d 73 65 |tplist n|il symse|
|00005b60| 74 3a 64 65 6c 65 74 65 | 20 73 79 6d 62 6f 6c 73 |t:delete| symbols|
|00005b70| 20 66 6d 61 6b 75 6e 62 | 6f 75 6e 64 20 72 75 6e | fmakunb|ound run|
|00005b80| 2d 68 6f 6f 6b 73 20 68 | 74 79 70 65 3a 64 65 6c |-hooks h|type:del|
|00005b90| 65 74 65 2d 68 6f 6f 6b | 5d 20 34 20 22 5c 0a 44 |ete-hook|] 4 "\.D|
|00005ba0| 65 6c 65 74 65 20 61 20 | 48 79 70 65 72 62 6f 6c |elete a |Hyperbol|
|00005bb0| 65 20 54 59 50 45 20 64 | 65 72 69 76 65 64 20 66 |e TYPE d|erived f|
|00005bc0| 72 6f 6d 20 54 59 50 45 | 2d 43 41 54 45 47 4f 52 |rom TYPE|-CATEGOR|
|00005bd0| 59 20 28 62 6f 74 68 20 | 73 79 6d 62 6f 6c 73 29 |Y (both |symbols)|
|00005be0| 2e 0a 52 65 74 75 72 6e | 20 74 68 65 20 48 79 70 |..Return| the Hyp|
|00005bf0| 65 72 62 6f 6c 65 20 73 | 79 6d 62 6f 6c 20 66 6f |erbole s|ymbol fo|
|00005c00| 72 20 74 68 65 20 54 59 | 50 45 20 69 66 20 69 74 |r the TY|PE if it|
|00005c10| 20 65 78 69 73 74 65 64 | 2c 20 65 6c 73 65 20 6e | existed|, else n|
|00005c20| 69 6c 2e 22 5d 29 0a 28 | 66 73 65 74 20 27 68 74 |il."]).(|fset 'ht|
|00005c30| 79 70 65 3a 64 6f 63 20 | 23 5b 28 74 79 70 65 29 |ype:doc |#[(type)|
|00005c40| 20 22 c0 09 21 87 22 20 | 5b 64 6f 63 75 6d 65 6e | "..!." |[documen|
|00005c50| 74 61 74 69 6f 6e 20 74 | 79 70 65 5d 20 32 20 22 |tation t|ype] 2 "|
|00005c60| 5c 0a 52 65 74 75 72 6e | 20 64 6f 63 75 6d 65 6e |\.Return| documen|
|00005c70| 74 61 74 69 6f 6e 20 66 | 6f 72 20 48 79 70 65 72 |tation f|or Hyper|
|00005c80| 62 6f 6c 65 20 54 59 50 | 45 2c 20 61 20 73 79 6d |bole TYP|E, a sym|
|00005c90| 62 6f 6c 2e 22 5d 29 0a | 28 66 73 65 74 20 27 68 |bol."]).|(fset 'h|
|00005ca0| 74 79 70 65 3a 6e 61 6d | 65 73 20 23 5b 28 74 79 |type:nam|es #[(ty|
|00005cb0| 70 65 2d 63 61 74 65 67 | 6f 72 79 20 26 6f 70 74 |pe-categ|ory &opt|
|00005cc0| 69 6f 6e 61 6c 20 73 79 | 6d 29 20 22 c0 09 c2 5c |ional sy|m) "...\|
|00005cd0| 22 0b ad 83 c4 0b 21 1d | 1e 06 0d ab 99 c7 c8 0d |".....!.|........|
|00005ce0| 5c 22 ab 88 c9 0d ca 95 | cb 4f 21 13 0b 0e 06 3e |\"......|.O!....>|
|00005cf0| ad 8a c4 0b 21 aa 85 cc | c4 0e 06 5c 22 2a 87 22 |....!...|...\"*."|
|00005d00| 20 5b 73 79 6d 73 65 74 | 3a 67 65 74 20 74 79 70 | [symset|:get typ|
|00005d10| 65 2d 63 61 74 65 67 6f | 72 79 20 73 79 6d 62 6f |e-catego|ry symbo|
|00005d20| 6c 73 20 73 79 6d 20 73 | 79 6d 62 6f 6c 2d 6e 61 |ls sym s|ymbol-na|
|00005d30| 6d 65 20 73 79 6d 2d 6e | 61 6d 65 20 74 79 70 65 |me sym-n|ame type|
|00005d40| 73 20 73 74 72 69 6e 67 | 2d 6d 61 74 63 68 20 22 |s string|-match "|
|00005d50| 3a 3a 22 20 69 6e 74 65 | 72 6e 20 30 20 6e 69 6c |::" inte|rn 0 nil|
|00005d60| 20 6d 61 70 63 61 72 5d | 20 34 20 22 5c 0a 52 65 | mapcar]| 4 "\.Re|
|00005d70| 74 75 72 6e 20 6c 69 73 | 74 20 6f 66 20 63 75 72 |turn lis|t of cur|
|00005d80| 72 65 6e 74 20 6e 61 6d | 65 73 20 66 6f 72 20 48 |rent nam|es for H|
|00005d90| 79 70 65 72 62 6f 6c 65 | 20 54 59 50 45 2d 43 41 |yperbole| TYPE-CA|
|00005da0| 54 45 47 4f 52 59 20 69 | 6e 20 70 72 69 6f 72 69 |TEGORY i|n priori|
|00005db0| 74 79 20 6f 72 64 65 72 | 2e 0a 4e 61 6d 65 73 20 |ty order|..Names |
|00005dc0| 64 6f 20 6e 6f 74 20 63 | 6f 6e 74 61 69 6e 20 63 |do not c|ontain c|
|00005dd0| 61 74 65 67 6f 72 79 20 | 63 6f 6d 70 6f 6e 65 6e |ategory |componen|
|00005de0| 74 2e 0a 54 59 50 45 2d | 43 41 54 45 47 4f 52 59 |t..TYPE-|CATEGORY|
|00005df0| 20 73 68 6f 75 6c 64 20 | 62 65 20 27 61 63 74 79 | should |be 'acty|
|00005e00| 70 65 73 2c 20 27 69 62 | 74 79 70 65 73 20 6f 72 |pes, 'ib|types or|
|00005e10| 20 6e 69 6c 20 66 6f 72 | 20 61 6c 6c 2e 0a 57 68 | nil for| all..Wh|
|00005e20| 65 6e 20 6f 70 74 69 6f | 6e 61 6c 20 53 59 4d 20 |en optio|nal SYM |
|00005e30| 69 73 20 67 69 76 65 6e | 2c 20 72 65 74 75 72 6e |is given|, return|
|00005e40| 20 74 68 65 20 6e 61 6d | 65 20 66 6f 72 20 74 68 | the nam|e for th|
|00005e50| 61 74 20 73 79 6d 62 6f | 6c 20 6f 6e 6c 79 2c 20 |at symbo|l only, |
|00005e60| 69 66 20 61 6e 79 2e 22 | 5d 29 0a 28 66 73 65 74 |if any."|]).(fset|
|00005e70| 20 27 68 74 79 70 65 3a | 73 79 6d 62 6f 6c 20 23 | 'htype:|symbol #|
|00005e80| 5b 28 74 79 70 65 20 74 | 79 70 65 2d 63 61 74 65 |[(type t|ype-cate|
|00005e90| 67 6f 72 79 29 20 22 c0 | c1 5c 6e 21 c3 c1 0c 21 |gory) ".|.\n!...!|
|00005ea0| 51 21 87 22 20 5b 69 6e | 74 65 72 6e 20 73 79 6d |Q!." [in|tern sym|
|00005eb0| 62 6f 6c 2d 6e 61 6d 65 | 20 74 79 70 65 2d 63 61 |bol-name| type-ca|
|00005ec0| 74 65 67 6f 72 79 20 22 | 3a 3a 22 20 74 79 70 65 |tegory "|::" type|
|00005ed0| 5d 20 35 20 22 5c 0a 52 | 65 74 75 72 6e 20 48 79 |] 5 "\.R|eturn Hy|
|00005ee0| 70 65 72 62 6f 6c 65 20 | 74 79 70 65 20 73 79 6d |perbole |type sym|
|00005ef0| 62 6f 6c 20 63 6f 6d 70 | 6f 73 65 64 20 66 72 6f |bol comp|osed fro|
|00005f00| 6d 20 54 59 50 45 20 61 | 6e 64 20 54 59 50 45 2d |m TYPE a|nd TYPE-|
|00005f10| 43 41 54 45 47 4f 52 59 | 20 28 62 6f 74 68 20 73 |CATEGORY| (both s|
|00005f20| 79 6d 62 6f 6c 73 29 2e | 22 5d 29 0a 28 66 73 65 |ymbols).|"]).(fse|
|00005f30| 74 20 27 69 62 75 74 3a | 61 74 2d 70 20 23 5b 28 |t 'ibut:|at-p #[(|
|00005f40| 26 6f 70 74 69 6f 6e 61 | 6c 20 6b 65 79 2d 6f 6e |&optiona|l key-on|
|00005f50| 6c 79 29 20 22 c0 c1 21 | c2 c3 89 89 1c 1d 1e 06 |ly) "..!|........|
|00005f60| 1e 07 1e 08 0e 09 ac 84 | ca cb 21 88 0c ac 9c 0e |........|..!.....|
|00005f70| 08 ab 98 0e 08 40 89 16 | 06 20 89 15 ab 86 0e 06 |.....@..|. ......|
|00005f80| 89 14 aa 69 0e 08 41 16 | 08 aa 61 0c ad bd 0e 09 |...i..A.|..a.....|
|00005f90| ab 86 cc cb cd 5c 22 aa | b3 ce cb cf 8a d0 d1 21 |.....\".|.......!|
|00005fa0| 29 23 88 ce cb d2 0c 23 | 88 cc cb c5 5c 22 ac 9c |)#.....#|....\"..|
|00005fb0| 0d 3c ab 98 ce cb d3 d4 | d5 d6 0d 40 21 50 21 ae |.<......|...@!P!.|
|00005fc0| 82 0d 40 23 88 ce cb c5 | 0d 41 23 88 cb 2d 87 22 |..@#....|.A#..-."|
|00005fd0| 20 5b 68 74 79 70 65 3a | 63 61 74 65 67 6f 72 79 | [htype:|category|
|00005fe0| 20 69 62 74 79 70 65 73 | 20 61 63 74 79 70 65 3a | ibtypes| actype:|
|00005ff0| 69 64 65 6e 74 69 74 79 | 20 6e 69 6c 20 69 73 2d |identity| nil is-|
|00006000| 74 79 70 65 20 61 72 67 | 73 20 69 74 79 70 65 20 |type arg|s itype |
|00006010| 68 72 75 6c 65 3a 61 63 | 74 69 6f 6e 20 74 79 70 |hrule:ac|tion typ|
|00006020| 65 73 20 6b 65 79 2d 6f | 6e 6c 79 20 68 61 74 74 |es key-o|nly hatt|
|00006030| 72 3a 63 6c 65 61 72 20 | 68 62 75 74 3a 63 75 72 |r:clear |hbut:cur|
|00006040| 72 65 6e 74 20 68 61 74 | 74 72 3a 67 65 74 20 6c |rent hat|tr:get l|
|00006050| 62 6c 2d 6b 65 79 20 68 | 61 74 74 72 3a 73 65 74 |bl-key h|attr:set|
|00006060| 20 6c 6f 63 20 68 62 75 | 74 3a 6b 65 79 2d 73 72 | loc hbu|t:key-sr|
|00006070| 63 20 66 75 6c 6c 20 63 | 61 74 65 67 20 61 63 74 |c full c|ateg act|
|00006080| 79 70 65 20 69 6e 74 65 | 72 6e 2d 73 6f 66 74 20 |ype inte|rn-soft |
|00006090| 22 61 63 74 79 70 65 73 | 3a 3a 22 20 73 79 6d 62 |"actypes|::" symb|
|000060a0| 6f 6c 2d 6e 61 6d 65 5d | 20 38 20 22 5c 0a 52 65 |ol-name]| 8 "\.Re|
|000060b0| 74 75 72 6e 73 20 73 79 | 6d 62 6f 6c 20 66 6f 72 |turns sy|mbol for|
|000060c0| 20 69 6d 70 6c 69 63 69 | 74 20 62 75 74 74 6f 6e | implici|t button|
|000060d0| 20 61 74 20 70 6f 69 6e | 74 2c 20 65 6c 73 65 20 | at poin|t, else |
|000060e0| 6e 69 6c 2e 0a 57 69 74 | 68 20 6f 70 74 69 6f 6e |nil..Wit|h option|
|000060f0| 61 6c 20 4b 45 59 2d 4f | 4e 4c 59 2c 20 72 65 74 |al KEY-O|NLY, ret|
|00006100| 75 72 6e 73 20 6f 6e 6c | 79 20 74 68 65 20 6c 61 |urns onl|y the la|
|00006110| 62 65 6c 20 6b 65 79 20 | 66 6f 72 20 62 75 74 74 |bel key |for butt|
|00006120| 6f 6e 2e 22 5d 29 0a 28 | 66 73 65 74 20 27 69 62 |on."]).(|fset 'ib|
|00006130| 75 74 3a 69 73 2d 70 20 | 23 5b 28 6f 62 6a 65 63 |ut:is-p |#[(objec|
|00006140| 74 29 20 22 08 39 ad 8f | c1 08 c2 5c 22 89 1a ad |t) ".9..|...\"...|
|00006150| 86 c3 c4 c5 5c 6e 21 5c | 22 29 87 22 20 5b 6f 62 |....\n!\|")." [ob|
|00006160| 6a 65 63 74 20 68 61 74 | 74 72 3a 67 65 74 20 63 |ject hat|tr:get c|
|00006170| 61 74 65 67 20 73 74 72 | 69 6e 67 2d 6d 61 74 63 |ateg str|ing-matc|
|00006180| 68 20 22 5e 69 62 74 79 | 70 65 73 3a 3a 22 20 73 |h "^ibty|pes::" s|
|00006190| 79 6d 62 6f 6c 2d 6e 61 | 6d 65 5d 20 35 20 22 5c |ymbol-na|me] 5 "\|
|000061a0| 0a 52 65 74 75 72 6e 73 | 20 6e 6f 6e 2d 6e 69 6c |.Returns| non-nil|
|000061b0| 20 69 66 20 6f 62 6a 65 | 63 74 20 64 65 6e 6f 74 | if obje|ct denot|
|000061c0| 65 73 20 61 6e 20 69 6d | 70 6c 69 63 69 74 20 48 |es an im|plicit H|
|000061d0| 79 70 65 72 62 6f 6c 65 | 20 62 75 74 74 6f 6e 2e |yperbole| button.|
|000061e0| 22 5d 29 0a 28 66 73 65 | 74 20 27 69 62 75 74 3a |"]).(fse|t 'ibut:|
|000061f0| 6c 61 62 65 6c 2d 70 20 | 23 5b 6e 69 6c 20 22 c0 |label-p |#[nil ".|
|00006200| c1 21 87 22 20 5b 69 62 | 75 74 3a 61 74 2d 70 20 |.!." [ib|ut:at-p |
|00006210| 6b 65 79 2d 6f 6e 6c 79 | 5d 20 32 20 22 5c 0a 52 |key-only|] 2 "\.R|
|00006220| 65 74 75 72 6e 73 20 6b | 65 79 20 66 6f 72 20 48 |eturns k|ey for H|
|00006230| 79 70 65 72 62 6f 6c 65 | 20 69 6d 70 6c 69 63 69 |yperbole| implici|
|00006240| 74 20 62 75 74 74 6f 6e | 20 6c 61 62 65 6c 20 74 |t button| label t|
|00006250| 68 61 74 20 70 6f 69 6e | 74 20 69 73 20 6f 6e 20 |hat poin|t is on |
|00006260| 6f 72 20 6e 69 6c 2e 22 | 5d 29 0a 28 66 73 65 74 |or nil."|]).(fset|
|00006270| 20 27 69 62 75 74 3a 6c | 61 62 65 6c 2d 73 65 74 | 'ibut:l|abel-set|
|00006280| 20 23 5b 28 6c 61 62 65 | 6c 20 26 6f 70 74 69 6f | #[(labe|l &optio|
|00006290| 6e 61 6c 20 73 74 61 72 | 74 20 65 6e 64 29 20 22 |nal star|t end) "|
|000062a0| 08 3b ab 9e c1 c2 c3 c4 | 08 21 23 88 0d ab 86 c1 |.;......|.!#.....|
|000062b0| c2 c6 0d 23 88 0e 07 ab | b0 c1 c2 c8 0e 07 23 88 |...#....|......#.|
|000062c0| aa a7 08 ab 9f 08 3c ab | 9b c1 c2 c3 c4 08 40 21 |......<.|......@!|
|000062d0| 23 88 c1 c2 c6 08 41 40 | 23 88 c1 c2 c8 c9 08 38 |#.....A@|#......8|
|000062e0| 23 88 aa 85 ca cb 08 5c | 22 88 cc 87 22 20 5b 6c |#......\|"..." [l|
|000062f0| 61 62 65 6c 20 68 61 74 | 74 72 3a 73 65 74 20 68 |abel hat|tr:set h|
|00006300| 62 75 74 3a 63 75 72 72 | 65 6e 74 20 6c 62 6c 2d |but:curr|ent lbl-|
|00006310| 6b 65 79 20 68 62 75 74 | 3a 6c 61 62 65 6c 2d 74 |key hbut|:label-t|
|00006320| 6f 2d 6b 65 79 20 73 74 | 61 72 74 20 6c 62 6c 2d |o-key st|art lbl-|
|00006330| 73 74 61 72 74 20 65 6e | 64 20 6c 62 6c 2d 65 6e |start en|d lbl-en|
|00006340| 64 20 32 20 65 72 72 6f | 72 20 22 28 69 62 75 74 |d 2 erro|r "(ibut|
|00006350| 3a 6c 61 62 65 6c 2d 73 | 65 74 29 3a 20 49 6e 76 |:label-s|et): Inv|
|00006360| 61 6c 69 64 20 6c 61 62 | 65 6c 20 61 72 67 3a 20 |alid lab|el arg: |
|00006370| 27 25 73 27 22 20 74 5d | 20 35 20 22 5c 0a 53 65 |'%s'" t]| 5 "\.Se|
|00006380| 74 73 20 63 75 72 72 65 | 6e 74 20 69 6d 70 6c 69 |ts curre|nt impli|
|00006390| 63 69 74 20 62 75 74 74 | 6f 6e 20 61 74 74 72 69 |cit butt|on attri|
|000063a0| 62 75 74 65 73 20 66 72 | 6f 6d 20 4c 41 42 45 4c |butes fr|om LABEL|
|000063b0| 20 61 6e 64 20 53 54 41 | 52 54 2c 20 45 4e 44 20 | and STA|RT, END |
|000063c0| 70 6f 73 69 74 69 6f 6e | 2e 0a 53 54 41 52 54 20 |position|..START |
|000063d0| 61 6e 64 20 45 4e 44 20 | 61 72 65 20 4f 50 54 49 |and END |are OPTI|
|000063e0| 4f 4e 41 4c 2e 0a 49 66 | 20 4c 41 42 45 4c 20 69 |ONAL..If| LABEL i|
|000063f0| 73 20 61 20 6c 69 73 74 | 2c 20 69 74 20 69 73 20 |s a list|, it is |
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.